Entries from 2009
Read slow
Explain about read slow. One can call to read return 0 which signals the end of file life, if data is written on that file then a subsequent read will be able to find more bytes available. This observation is the basis of a program called readslow which continues to read its input, regardless of Read More...
Special arrangements to make a terminal i/p and o/p
What are the special arrangements to make a terminal i/p and o/p? When it is started by the shell, a program inherits three open files, with file descriptor 0, 1 and 2 called the standard i/p, the standard o/p, and the standard error. If the program reads “0†and writes descriptors 1 and 2, it Read More...
Low-level I/O
Explain about low-level I/O. The lowest of I/O is a direct entry into the O.S. your program reads or writes files in chunks of any convenient size. The kernel buffers your data into chunks that match the peripheral devices and schedule operations on the devices to optimize their performance over all users. Read More...
Take full advantage of your terminal capabilities
Suppose that you are using a terminal in which the screen size is bigger than the normal 24 lines. If you want to use p and take full advantage of your terminal capabilities, what choices are open to you? You have to specify the screen size each time you use P. $P-36. Also you could Read More...