Return-Path: william@bourbon.usc.edu Delivery-Date: Sun Sep 21 20:04:16 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 m8M34Gku018596 for ; Sun, 21 Sep 2008 20:04:16 -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 m8M36XIB007334 for ; Sun, 21 Sep 2008 20:06:33 -0700 Message-Id: <200809220306.m8M36XIB007334@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: cs551 Warmup 2 : Queue objects Date: Sun, 21 Sep 2008 20:06:33 -0700 From: Bill Cheng Someone wrote: > I had a query about the warmup 2, in lec5 slide 13 we have : > > "wakes up, creates a customer object, enqueues the > customer to Q1, and goes back to sleep" > > what does the object here mean ? It's either a C++ object or a C data structure. I've been calling this object "the customer". A customer carries timestamps such as when it arrived into the system, when it got enqueued at Q1, when it left Q1, which server it go into, when it begins service, and when it leaves the server, and whatever else you want to keep track. -- Bill Cheng // bill.cheng@usc.edu