Return-Path: william@bourbon.usc.edu Delivery-Date: Fri Sep 19 16:31:29 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 m8JNVTYR015686 for ; Fri, 19 Sep 2008 16:31:29 -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 m8JNXEFp019995 for ; Fri, 19 Sep 2008 16:33:14 -0700 Message-Id: <200809192333.m8JNXEFp019995@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: Prj 2 Date: Fri, 19 Sep 2008 16:33:14 -0700 From: Bill Cheng Someone wrote: > How would you use select, when you just want to sleep and > don't want to wait on a fd set? You can call select() with the last argument set to the sleep amount and NULL for everything else. -- Bill Cheng // bill.cheng@usc.edu -----Original Message----- From: Bill Cheng [mailto:william@bourbon.usc.edu] Sent: Friday, September 19, 2008 2:20 PM To: cs551@merlot.usc.edu Subject: Re: Prj 2 Someone wrote: > Bill Cheng wrote: > > Someone wrote: > > > > > "Â The return value of GetInterval() should be an integer having a > > > unit of milliseconds. To make things easier to manage, we limit > > > the value of this integer to be between 1 and 10,000. This means > > > that before GetInterval() returns, you must examine the value it > > > plans to return. If it's too small, set it to 1, if it's too > > > large, set it to 10,000. This also applies to the values you read > > > from tsfile. " > > > > > > Does it mean if rate is 0 must return 10000 and if value > > > returned by GetInterval is < 1 then we should return 1? > > > > Correct! > > -- > > Bill Cheng // bill.cheng@usc.edu > > Could we also assume service time ranges from 1 to 10000, if mu is too > small or too large? GetInterval() is a generic function. It doesn't care if you are doing inter-arrival time or service time. You can use it for anything you want, if appropriate. -- Bill Cheng // bill.cheng@usc.edu