> Or is there smth even better?
Like single threaded code, and using select() with a timeout to monitor changes in the state of one (or more) file descriptors.
Single threaded code is so...
Type: Posts; User: Salem
> Or is there smth even better?
Like single threaded code, and using select() with a timeout to monitor changes in the state of one (or more) file descriptors.
Single threaded code is so...
main itself also needs to call pthread_exit()