Return-Path: william@bourbon.usc.edu Delivery-Date: Fri Sep 26 19:50:00 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id m8R2o0MK004157 for ; Fri, 26 Sep 2008 19:50:00 -0700 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id m8R2rTKg020989 for ; Fri, 26 Sep 2008 19:53:29 -0700 Message-Id: <200809270253.m8R2rTKg020989@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: ctl - c handling Date: Fri, 26 Sep 2008 19:53:29 -0700 From: Bill Cheng Someone wrote: > I am not sure that if we block the SIGINT in the arrival thread then how the > interrupt is going to affect the select method while the thread is > sleeping.So if the thread is sleeping for 10000 ms and we pressed ctl-c then > we need to wait for 10000 second. But the grading guideline wants us to > print the stats immediately. And also sigwait is not compiling on solaris. > Please help. If you get a , there will be no more arrivals. I don't understand why you said that you still need to wait for 10000ms in your example. I'm not sure why you said that sigwait() is not compiling on Solaris. It's used in the pthread_sigmask() example if you do "man pthread_sigmask". -- Bill Cheng // bill.cheng@usc.edu