473,406 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Application of Queues : Information Center Simulation

5
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 2377
sicarie
4,677 Expert Mod 4TB
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
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 Expert Mod 4TB
And what is your specific question? Are you stuck on reading the information in? Or something else?
Sep 25 '07 #4
ch13f
5
waa!
this simply means that i need a whole code! T.T
Sep 26 '07 #5
sicarie
4,677 Expert Mod 4TB
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
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...
13
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,...
3
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...
1
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...
3
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...
0
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...
0
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...
2
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...
1
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.