Scheduling Algorithms
Part 1
First Come First Serve
Consider the following processes along with their burst time (in Calculate the average waiting time if the processes arrive in the following order
Process |
Burst Time in Ms |
P1 |
20 |
P2 |
10 |
P3 |
5 |
Calculate the average waiting time if the processes arrive in the following order
(i)P1, P2, P3
(ii)P2, P3, P1
(i) Case 1: Consider a case if processes P1, P2, P3 arrive at the same time say 0 ms in the system in the order P1, P2, P3. The arrival of processes is represented in the Gantt chart as shown below.
Gantt chart
P1 |
P2 |
P3 |
20 30 35
Process |
Waiting Time |
Turnaround Time |
P1 |
0 |
20 |
P2 |
20 |
30 |
P3 |
30 |
35 |
Therefore, average waiting time =
Turnaround Time =
Case 2: Processes arrive in order P1, P2, P3, let us assume at 0 ms, 2 ms and 4 ms, respectively.
Arrival Time: Time at which the process arrives in the ready queue.
Process |
Burst Time |
Arrival Time |
P1 |
20 |
0 |
P2 |
10 |
2 |
P3 |
5 |
4 |
Gantt chart: Draw the Gantt Chart
Waiting time for process P1 = 0 ms
Waiting time for process P2 = 20 ms – 2 ms = 18 ms
Waiting time for process P3 = 30 ms- 4 ms = 26 ms
Calculate the average waiting time
Calculate the Turnaround Time
In: Computer Science
In: Advanced Math
In a game of basketball, a forward makes a bounce pass to the center. The ball is thrown with an initial speed of 4.9 m/s at an angle of 20 ∘ above the horizontal. It is released 0.80 m above the floor.
What horizontal distance does the ball cover before bouncing?
In: Physics
Please Use your keyboard (Don't use handwriting)
*Course Name: Principles of Microbiology for Public Health BIOL103
I need new and unique answers, please. (Use your own words, don't copy and paste)
( Please i need more than 500 words please)
Q) Please compose an essay addressing the following topic:
VACCINES
Discuss the role of Microbiology in context to Public health for the above topic. Explain the different uses and support provided by microbiology in Vaccination Public Health programs.
Your essay must be structured as follows:
Introduction
Body
Conclusion
I need new and unique answers, please. (Use your own words, don't copy and paste)
( Please i need more than 500 words please)
In: Anatomy and Physiology
write the pseudocode to process these tasks:
For the second module, write the pseudocode to complete these tasks:
In: Computer Science
A project that costs $2,500 to install will provide annual cash flows of $750 for each of the next 5 years.
a. Calculate the NPV if the opportunity cost of capital is 10%? (Do not round intermediate calculations. Round your answer to 2 decimal places.) NPV $
b. Is this project worth pursuing? Yes No
c. What is the project's internal rate of return IRR? (Do not round intermediate calculations. Round your answer to 2 decimal places.) IRR %
In: Finance
Sunland Handicrafts, Inc., has net sales of $3.20 million with 50 percent being credit sales. Its cost of goods sold is $1.92 million. The firm’s cash conversion cycle is 51.5 days, and its operating cycle is 86.5 days. What is the firm’s accounts payable?
In: Finance
Sodium trioxalatocobaltate (III) trihydrate is
prepared by the following reactions:
[Co(H2O)6Cl2] + K2C2O4 *H2O >>> Co2O4 + 7 H2O
2CoC2O4 + H2O2 + 4 Na2C2O4 >>> 2 Na3[Co (C2O4)3*H2O + 2NaOH
what is the percent yield of Na3[Co (C2O4)3*H2O if 7.6 grams are obtained from 12.5 grams of [Co(H2O)6]Cl2 ? ( assume excess amount of the other reagents.)
In: Chemistry
Classless Subnetting
200.30.0.0/16
Group |
Blocks Needed |
Addresses Per Block |
Host Bits |
CIDR |
Total Addresses |
Increment # |
Start Address |
End Address |
A |
16 |
512 |
||||||
B |
128 |
64 |
||||||
C |
32 |
1024 |
||||||
D |
512 |
4 |
||||||
E |
256 |
16 |
Group C
Block |
Start (Subnet ID) |
1st Address |
Last Address |
End (Broadcast) |
1 |
||||
2 |
||||
3 |
||||
4 |
||||
5 |
In: Computer Science
for Boeing please focus in the following
In: Operations Management
1) A person is using the normal distribution to determine the safety stock for a product. If the weekly demand is N(40, 16) and the company wishes to maintain their 90 percent service level, approximately how much safety stock should be held given a one-week lead time?
Select one:
a. 21 units
b. 17 units
c. 9 units
d. 6 units
2) A person is using the normal distribution to determine the safety stock for a product. If the weekly demand is N(40, 16) and the company wishes to maintain their 90 percent service level, what is the approximate reorder point given a one-week lead time?
Select one:
a. 61 units
b. 46 units
c. 49 units
d. 57 units
In: Operations Management
In: Operations Management
In Python, there are different sorting algorithms.
Selection Sort, Bubble Sort and Insertion Sort.
• Write a Pseudo code first for each of these sort methods.
• After writing the pseudo code write python code from the pseudo code.
• Upload the pseudo code and Python code for each of the three algorithm mentioned.
In: Computer Science
Your landscaping company can lease a truck for $7,200 a year for 6 years. It can instead buy the truck for $35,000. The truck will be valueless after 6 years. a. What is the present value of the lease payments, if the opportunity cost of capital is 7%. (Do not round intermediate calculations. Round your answer to 2 decimal places.) Present value $ b. Is it cheaper to buy or lease? Lease Buy
In: Finance
Adjustment Letter: Ben & Jerry’s
In an exciting inside look, you see managers discussing six factors that determine Ben & Jerry’s continuing success. Toward the end of the video, you hear staffers discuss a new packaging material made with unbleached paper. As a socially responsible company, Ben & Jerry’s wanted to move away from ice cream packages made from bleached papers. Bleaching requires chlorine, a substance that contains dioxin, which is known to cause cancer, genetic and reproductive defects, and learning disabilities. In producing paper pulp mills using chlorine are also adding to dioxin contamination of waterways. After much research, Ben & Jerry’s found a chlorine-free, unbleached paper board for its packages, That was the good news. The bad news is that the inside of the package is now brown.
Assume you have been hired at Ben & Jerry’s to help answer incoming letters. Although you are fairly new, your boss gives you a letter from an unhappy customer. This customer opened a pint of Ben & Jerry’s “World’s Best Vanilla” and then threw it out. After seeing the brown inner lid, he decided that his pint must have been used for chocolate before it was used for vanilla. Or, he said, “The entire pint has gone bad and somehow turned the sides brown.” Whatever the reason, he wasn’t’ taking any changes. He wanted his money back.
TASK: Write a letter that explains the brown carton, justifies the reason for using it, and retains the customer’s business.
In: Economics