[En-Nut-Discussion] Waiting on file descriptors
Ole Reinhardt
ole.reinhardt at kernelconcepts.de
Tue Feb 8 12:56:52 CET 2005
Hi all,
I'd like to discuss the possibilities to implement a select function.
Select under unix is used for synchronous i/o multiplexing. You can
define a set of filedescriptors using FD_SET you'd like to observe and
then call select with this set as parameter. If the state of one of them
has changed (i.E. data is available, device got closed and so on...) the
select call returns and you can figure out what happened.
This is very usefull if you read from different devices and don't whant
to use multiple threads.
Any ideas how to implement this?
Regards,
Ole
--
kernel concepts Tel: +49-271-771091-14
Dreisbachstr. 24 Fax: +49-271-771091-19
D-57250 Netphen E+ : +49-177-7420433
--
More information about the En-Nut-Discussion
mailing list