473,662 Members | 2,382 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Application of Queues : Information Center Simulation

5 New Member
The overall simulation should proceed as follows:
A simulated clock is initialized to 0 and the repeatedly advanced by 1 minute until it is equal to some given time limit(minutes). On each "tick" of a click, a check is made to determine if service has been completed for the current call, and if so, a new call is taken from the queue of calls that are waiting for service (if there are any), and its simulated service is initiated. A check is also made to determine if a new call has arrived. If it has, its arrival time is recorded, its service time is determined and recorded, and it is placed on the queue for processing in a first-come-first-serve manner when the agent becomes available. When the specified time limit has been reached, no new calls has been accepted, but service continues until all the calls in the on-hold queue have been processed.

When the simulation is complete, statistics such as number of calls processed and the average waiting time for each call that measure the performance of the information center must be reported. Also, during peak hours, some incoming calls may be rejected - because there is no room for them in the queue - and it may be useful to know the number of times that this occurs. These three statistics will constitute the output of this simulation.
  • Number of calls processed
  • Average waiting time per call
  • Number of calls rejected

As we noted earlier, the simulation is to run for a specified period of time, and thus one input item must be a time limit. Since it is necessary to simulate the arrival and service of calls, information about arrival rates and service times is also needed. Thus the input will be
  • Arrival rate of calls
  • Distribution of service times
  • Time limit

To determine whether or not a call has arrived in a particular minute, we generate a random number between 0 and 1, and if this number is less than arrival rate, we say that a call has arrived during this minute: (arrival rate is assumed to be 20%)
When a new call arrives, it's arrival time and the time required to service the call must be recorded. The values 0,50,0.75,0.90, 1.00

I really need a C source code of a Queue Implementation of the given problem ..
Please .. T.T
Sep 24 '07 #1
5 2403
sicarie
4,677 Recognized Expert Moderator Specialist
Okay, what are you stuck on? What do you need help on?

Did you read our Posting Guidelines, specifically the sections on Asking A Good Question and Posting Homework Questions and Answers?
Sep 24 '07 #2
ch13f
5 New Member
i apologize for that ..

here is it ..

asks the user to input number of hours
a caller arrives depending on the value of the generated random numbers
the expected outputs are :
  1. service time
  2. waiting time
  3. calls received
  4. calls rejected
  5. total service time
  6. total waiting time

please refer to the very first post for clarifications ..
the problem is completely stated there!

those are the expected outputs ..
i do need your help gurus .. T.T
Sep 25 '07 #3
sicarie
4,677 Recognized Expert Moderator Specialist
And what is your specific question? Are you stuck on reading the information in? Or something else?
Sep 25 '07 #4
ch13f
5 New Member
waa!
this simply means that i need a whole code! T.T
Sep 26 '07 #5
sicarie
4,677 Recognized Expert Moderator Specialist
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

Then when you are ready post a new question in this thread.
Sep 26 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
9893
by: Dionísio Monteiro | last post by:
Hi there, After Installing IIS on a WinXP Pro machine, I have copied one of my web site files to test it on that machine. I have created a virtual directory, and when I try to access the site on http://localhost/website. When I try to load any ASP page, I get the following error: "Server Application Error The server has encountered an error while loading an application during the
13
2838
by: BK | last post by:
Can someone point me to a code sample that illustrates executing long running tasks (asynchronous) from a web application in ASP.NET? I assume that Web Services might come into play at some point, but I'm not sure how to get started. For example, I have an application that, upon a user initiating through a button or link click, will go out and generate a bunch of files (this could take several minutes). This will happen in batches, so I...
3
1839
by: Joris Dobbelsteen | last post by:
Dear, I have some considerations I need to take designing a distributed application (it's for a school project). Basically I'm looking for some reference or guidiance material/literature and advises on (potential) issues I should take caution for. The design involves a distributed simulation application. It simulates sheeps in a pasture, together with dogs, wolves and shepherd. The pastures contain grass. There are also multiple...
1
1400
by: saleem | last post by:
Dear friends, I am working on the problem which deals with the data management of requests and how should we match the responses for the requests to compare the correct Response. my problem is like this, say I am intermediary node between "m" and "n" nodes . n nodes send any of the "p"type of requests to any one of the "m" nodes on the other side. I have to forward the requests to
3
1575
by: Chris Calzaretta | last post by:
Hello Working with system.threading.thread Ok I have an windows user control. It has 3 thread on it thread 1 uploaded files types a thread 2 upload files types b thread 3 upload files types c this all happens at same time Works great
0
1204
by: emferrari | last post by:
Hi all I was going to start a new ASP.NET application yesterday. When I tryed to create it using the Microsoft Visual Studio.NET I got some messages that the application was unable to access the local server to create the ASP.NET application. After that I restarted the IIS and tryed to open the page http://localhost, without success.
0
1342
by: Kevin A | last post by:
The problem is that the web application mysteriously shuts down (ending all sessions) due to a supposed 'configuration change'. By using ASP.Net Health Monitoring we can determine that the application occasionally raises a "Application is shutting down. Reason: Configuration changed." event during normal application usage. The only known way to duplicate this event is to manually save the web.config, which correctly triggers the event as...
2
4556
by: Ronald | last post by:
I just started with dotnetnuke, and with a wrong login (wrong password on a clean install i can crash the application pool from IIS. (when i login with the right username/password information the site works fine, i can do anything it is supposed to do) I have the following setup: -Windows 2003 x64 (fully patched, clean install) -Dotnetframework 2.0.50727 -Dotnetnuke 4.3.1
1
4765
by: Florence Tissot | last post by:
We are seeing some kind of resource leak in our performance lab running an ASP.NET (2.0) application that sends and receives messages from 2 public MSMQ queues. Here's a brief summary of what are application does: 1. user provides input on a form on an aspx page and clicks continues 2. on postback, the page creates a c# .net object and calls a method on it to process the data provided by the user 3. the object in turns creates an...
0
8432
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8343
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8762
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8545
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5653
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1992
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.