Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
How big is the keyboard buffer?
A) How many keys can be pressed simultaineusly?
B) How many consecutivly?
Thanks

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

![]() |
![]() |
![]() |

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