lkml.org 
[lkml]   [1999]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: linux-kernel-digest V1 #4149
On Thu, 15 Jul 1999 yodaiken@chelm.cs.nmt.edu wrote:
> signal_handler:
> catch signal
> use whatever nutty algorithm is wanted to pick a thread
> toss in time, random numbers, stock valuations,
> pthread_kill(selected_thread, ...)

Certainly you knew it couldn't be that easy. The problem is that you've
gotta send the signal to some particular pid. That pid won't be dedicated
to "multiplexing" signals... it needs to receive its own thread signals as
well. That's the problem there. So whatever you do, you'll need some way
to decide between delivering a signal to a process, or searching that
process's "group" for an appropriate process to receive the signal.

Chris Smith <cd_smith@ou.edu>


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.081 / U:1.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site