Mail Archives: djgpp-workers/1999/04/29/14:41:55
Bonjour
I'm timidely setting the stage for some threading stuff and one thing occurred
to me. Non-blocking I/O.
For example when dealing with user threads a system call can not
block the whole process/program. One way to deal with it
is to take say read(), set the fd non-blocking, if the read() would
block put the thread to sleep(the waiting queue) and set the handler
for SIGIO or SIGPOLL, on receive of the signal select() will
do the demux to see who is ready, and reschedule the threads base
on whatever policy.
Now I don't thing that notifying for an event can be done within
DOS, Am I wrong ? comments ?
--
au revoir, alain
----
Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!!
- Raw text -