Computing.Net > Forums > Programming > Keyboard Buffer: How Big?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Keyboard Buffer: How Big?

Reply to Message Icon

Name: Freddy Light
Date: March 8, 2002 at 23:23:15 Pacific
Comment:

How big is the keyboard buffer?

A) How many keys can be pressed simultaineusly?

B) How many consecutivly?

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Apple
Date: March 9, 2002 at 14:52:09 Pacific
Reply:

In DOS, the keyboard buffer was 16 key presses.


0

Response Number 2
Name: Mahalakshmi.Nair
Date: July 22, 2002 at 03:50:33 Pacific
Reply:

In dos,the keyboard buffer can hold upto 15 keystrokes.Its size is 32 BYTES.For each keystroke there are two bytes in this buffer.
The last two bytes sequence is reserved for enter key.

*The buffer is designed in a circular queue.

*It occupies a series of contigious memory locations.

*Two pointers keep track of the 'head' and 'tail' of the circular queue.

*Keystrokes are deposited at the tail of the queue,whereas characters are removed from the head of the queue.

*As characters are typed in the tail pointer is incremented appropriately.

*If at the same time the typed in characters are not not processed from the head of the queue then the buffer becomes full and additional incomming characters are discarded and the keyboard beeps its speaker.

so in order to answer your question the number of keys pressed at a time is 15 keystrokes.

and by consecutively if u mean the keystrokes are processed as they are typed in then there is no limit....As i said the keyboard buffer is a circular queue.

Any further clarifications feel free to mail me at mahalakshmi@epmltd.com


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Keyboard Buffer: How Big?

keyboard buffer www.computing.net/answers/programming/keyboard-buffer/2857.html

Clearing the keyboard buffer in C www.computing.net/answers/programming/clearing-the-keyboard-buffer-in-c/12971.html

Keyboard buffer and reading strings www.computing.net/answers/programming/keyboard-buffer-and-reading-strings/12500.html