Computer Science OS

Computer Science OS

1. Define the terms
(a) process, and
(b) thread.
(What is the difference between them?)
2. A CPU scheduling algorithm determines an order for the execution of its processes. Given n processes to be scheduled on a single-core processor, how many possible different schedules are there?
3. Define the different levels of process scheduling,
(a) short-term,
(b) medium-term, and
(c) long-term.
(What is the difference between them?)
4. Describe how the following scheduling algorithms work and their advantages and disadvantages:
(a) first-come first-served (FCFS),
(b) shortest-job-first (SJF),
(c) priority,
(d) round-robin (RR),
(e) multi-level queue (MLQ), and
(f) multi-level feedback queue (MLFQ),
Network interface
Output buffer
Input buffer
Network interface
1 (3)Figure 1: A general depiction of a router or switch with five network interfaces and the data flowing from bottom to top.
5. Given this variant of the Round Robin scheduling algorithm, where the entries in the ready queue are pointers to the PCBs, what would be the effect of putting two pointers to the same PCB in the ready queue?
6. Consider a short-term scheduling algorithm which favours processes that have used the least processor time in the recent past. Why will this algorithm favour I/O-bound processes and yet not starve CPU-bound processes?
7. Describe the different ways of implementing threads, e.g. user threads and kernel threads. (What is the difference between them, what advantages and disadvantages are there with the different methods?)
8. State and explain the requirements of the critical-section problem.
9. Describe the problems which need to be handled for multi-processor and multi-core processor systems.
10. State and explain the requirements for a deadlock to occur.
11. Consider a system of four resources, all of the same type, that are shared by three processes, each of which needs at most two of the resources. Show that the system cannot enter a deadlock.
12. The problem presented here is an adaption of the sleeping barber problem and the producer consumer problem, we can call it the sleeping-router problem. The problem is simplified in that traffic only flows in one direction. There are four network interfaces to which data arrive from different networks,there is also one interface through which all data eventually leaves. See Figure 1. Each interface and the box in the middle may have a small buffer keeping only a few packets. The problem is to guarantee the system is synchronized, without starvation, and that no deadlocks can occur. Describe what buffers, locks, etc. Which are needed to make this work.
3 Examination
Your answers should be handed in using the course platform. They should be well-written using correct references including page or section numbers

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
The price is based on these factors:
Academic level
Number of pages

Order your essay today and save 7% with the discount code RBEST7