LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-20-2004, 09:30 AM   #1
jwstric2
Member
 
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.

Thanks

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

Rep: Reputation: 30
'man pthread_sigmask'
 
  


Reply



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 09:30 PM
<0>Kernel panic: Aiee, killing interrupt handler! In interrupt handler - not syncing mrb Linux - Newbie 2 01-09-2005 09:47 AM
multiple SIGALRM handlers in c jwstric2 Programming 2 08-07-2004 01:55 PM
pthreads socket9001 Programming 2 12-29-2003 12:23 AM
pthreads fr0ggeh Linux - Software 9 07-18-2003 10:43 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:01 PM.

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