Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-20-2004, 10:30 AM   #1
Registered: Jan 2004
Posts: 105

Rep: Reputation: 15
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.


Last edited by jwstric2; 09-20-2004 at 10:31 AM.
Old 09-20-2004, 05:38 PM   #2
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
'man pthread_sigmask'


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pthreads christheavatar Programming 4 03-05-2005 10:30 PM
<0>Kernel panic: Aiee, killing interrupt handler! In interrupt handler - not syncing mrb Linux - Newbie 2 01-09-2005 10:47 AM
multiple SIGALRM handlers in c jwstric2 Programming 2 08-07-2004 02:55 PM
pthreads socket9001 Programming 2 12-29-2003 01:23 AM
pthreads fr0ggeh Linux - Software 9 07-18-2003 11:43 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration