I an new at working with IPC objects with synchronization purposes for processes and threads.
Is there any special way to implement a Monitor in C? (such as semaphores, pipes, sockets, etc.) Is there a special .h file that has a specific object to use here?
If not, which is the best way to implement this?
Thanks in advance!
Silvio.
I’d use select, it works pretty much for everything you need: http://linux.die.net/man/2/select
Beyond that, I usually use the pthread style functions for mutexes/semaphores, but it’s really down to what the task at hand actually is.