pthreads mixed with interrupt handlers
I have an library which generate a SIGIO of a udp socket when something arrives on it and return this triggers a handler for handling a message. Its basically a reliable type udp without connection overhead and flow control. I have a delima now where I want to add some multithreading to parts of the applicaotin built on this libarau. What is hte best way to design the app so that the sighandlers and threads can work together but not hinder one another. In this I mean if a handler needs to lock a list and a thread holds the lock, then there are problems. I guess Im unsure how handlers and the threads will work together, especially is both threads are running together.
Thanks
Last edited by jwstric2; 09-20-2004 at 09:31 AM.
|