Return-Path: william@bourbon.usc.edu Delivery-Date: Tue Sep 16 17:39:48 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 m8H0dma4000783 for ; Tue, 16 Sep 2008 17:39:48 -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 m8H0eoUi011385 for ; Tue, 16 Sep 2008 17:40:50 -0700 Message-Id: <200809170040.m8H0eoUi011385@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: csci551-warmup#2 Date: Tue, 16 Sep 2008 17:40:50 -0700 From: Bill Cheng Someone wrote: > Do we compulsorily need to make 3 threads (2 server threads and 1 for the > arrival process) or can we simply make 2 server threads and let the main > thread handle the arrival process. In the first case,will the main do any > work (like creating the customers after every GetInterval() secs and then > telling the arrival thread to add them to queue) or simply create the 3 > threads(everything will be handled by these 3) and wait for them to get > completed? On slide 13 of lecture 5, it said that you need at least 3 threads (1 main thread and 2 child threads). The slide also said that you can have 4 threads (1 main thread and 3 child threads). -- Bill Cheng // bill.cheng@usc.edu