Page 1 of 1
standard outoput buffer
Posted: Sun Nov 10, 2002 11:34 am
by Mr_Spam
how would one go about creating a standard output buffer? is that the same as the video memory or is it something different? I'm to the point where i'm writing the printf function but would like compatability with ported programs eventually. maby i'm entierlly missing something to do with I/O buffers.
thanks,
Mr_Spam
Re:standard outoput buffer
Posted: Mon Nov 11, 2002 7:14 am
by Pype.Clicker
the basic idea with output buffer is to provide a common interface to programs output regardless it is actually received by a window, a text console or a file on disk ...
thus, rather than emitting characters directly to a video area, they are put in a buffer (shared between the application and the kernel) and wait for the display manager to be ready.
In addition to the "protection feature" (don't let the application play directly with the hardware), the output buffer can reduce the amount of system call made.