From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11035d,aa6f820f3f67c7ef X-Google-Attributes: gid11035d,public X-Google-Thread: 115614,aa6f820f3f67c7ef X-Google-Attributes: gid115614,public X-Google-Thread: fcda7,aa6f820f3f67c7ef X-Google-Attributes: gidfcda7,public X-Google-Thread: 10650a,aa6f820f3f67c7ef X-Google-Attributes: gid10650a,public X-Google-Thread: fa528,aa6f820f3f67c7ef X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-04-13 12:44:16 PST Path: supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed1.earthlink.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!news.mindspring.net!not-for-mail From: "Norman Black" Newsgroups: comp.unix.internals,comp.unix.solaris,comp.unix.tru64,comp.sys.hp.hpux,comp.unix.aix Subject: Re: awaking a thread ... waiting on select or poll Date: Fri, 13 Apr 2001 12:41:30 -0700 Organization: Stony Brook Software Distribution: inet Message-ID: <9b7kpc$ae2$1@slb6.atl.mindspring.net> References: Reply-To: "Norman Black" NNTP-Posting-Host: a5.79.7a.a0 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Server-Date: 13 Apr 2001 19:41:32 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Xref: supernews.google.com comp.unix.internals:494 comp.unix.solaris:38170 comp.unix.tru64:2122 comp.sys.hp.hpux:8712 comp.unix.aix:14851 You could create a pipe that you use only for manually waking a thread and have that in select/poll. Contrary to another message posed here, the Linux threads implementation does not use SIGUSR1, at least not 2.x versions. The LinuxThreads implementation uses realtime signals these days. I do not know when the transition occurred. -- Norman Black Stony Brook Software the reply, fubar => ix.netcom "MrSignor" wrote in message news:qIsB6.3628$zv6.2622115@typhoon2.ba-dsg.net... > Is there a reliable way (across Unix platforms) to wake-up a thread > sleeping/waiting on a Select or Poll, that is not timing out the request. > > Basically, I have a thread, waiting for work on 1-n sockets. Upon > occassion, I would like to wake the sleeping-thread, because I > need to bring something to it's attention. > > TIA > > -Fred > >