Preview

Scheduling Algorithm and Ready Queue

Good Essays
Open Document
Open Document
723 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Scheduling Algorithm and Ready Queue
CSci 5103 - Operating Systems
HW-1
February 9, 2015 This assignment is to be done individually and submitted in class. (Online submissions are not allowed) Due Date: February 16, 2015
Question 1 (20 points): What is the purpose of interrupts? What are the differences between a trap and an interrupt? Can traps be generated intentionally by a user program? If so, for what purpose?
Interrupt is that causes a computer processor to temporarily stop executing its current program and execute another program instead, finally returning control to the original program. So it prevent that more important task goes back because of less important task. The main difference between a trap and an interrupt is where they are generated. An interrupt is a hardware-generated. And it can be used to signal the completion of an I/O to obviate the need for device polling. Whereas a trap is software-generated interrupt and it can be used to call operating system routines or to catch arithmetic errors.
Question 2 (10 points): Why is the separation of mechanism and policy desirable?
Question 3 (10 points): What are the advantages of using loadable kernel modules?
Question 4 (15 points): Explain the role of the init process on UNIX and Linux systems in regards to process termination.
Question 5 (15 points): Can a multithreaded solution using multiple user-level threads achieve better performance on a multiprocessor system than on a single processor system? Explain.
Question 6 (20 points): Consider the following code segment: pid t pid; pid = fork(); if (pid == 0) { /* child process */ fork(); thread create( . . .);
}
fork();
a. How many unique processes are created?
b. How many unique threads are created?
Question 7 (20 points): A variation of the round-robin scheduler is the regressive round-robin scheduler. This scheduler assigns each process a time quantum and a priority. The initial value of a time quantum is 50 milliseconds.However, every

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Unit 454 Lab 4 Essay

    • 457 Words
    • 2 Pages

    (1 point) 4. What property of a firewall is the primary distinguishing factor between it and an intrusion detection system (IDS)?…

    • 457 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pos355 Project

    • 870 Words
    • 4 Pages

    Presentation for Memory Management (Linux, MAC, Windows) Presentation for Process Management (Linux, MAC, Windows) Presentation for File Management (Linux, MAC, Windows) Presentation for Security Management (Linux, MAC, Windows Team D review WK 4 Assignment. Team D submit Rough Draft of Final Power Point Presentation. Proceed? Finalize Linux, Mac, Windows Presentation Finalize Linux, MAC, Windows Paper Team D…

    • 870 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 1 Study Guide

    • 378 Words
    • 2 Pages

    Multiple threads can interfere with each other when sharing hardware resources such as caches or translation lookaside buffers (TLBs). As a result, execution times of a single thread are not improved but can be degraded, even when only one thread is executing, due to lower frequencies or additional pipeline stages that are necessary to accommodate thread-switching hardware.…

    • 378 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    NT1310 Unit 3 Homework

    • 1253 Words
    • 5 Pages

    Q3) What is a PID number? Why are these numbers useful when you run process in the background? Which utility displays the PID numbers of the commands you are running?…

    • 1253 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    Unit 59 Assignment 3

    • 645 Words
    • 3 Pages

    An interrupt is used when you want to quickly get the chips (CPU) attention at hardware level for a short amount of time when the value set has been meet (this is great as this removes barriers as stated on matrixtsl.com, you can with your program wake the controller when it’s in a low power state which you can’t do at software level). An interrupt works when you are running a program on an endless loop and meets a certain condition set in the program, this triggers the interrupt which will tell the CPU at hardware level (quicker than software level) to go to the sub program and once finished processing the sub-program, it will return back to the main program.…

    • 645 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    NT1430 Lab2 Joy Brewer

    • 989 Words
    • 4 Pages

    4. What is a Process? A process is the execution of a command by Linux (they can communicate with each other) What Utility provides communication between processes where output of one process provide input for another? pipe…

    • 989 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    Stallings, W. ((2015)). Operating Systems: Internal and Design Principles, 8e. Retrieved from The University of Phoenix eBook Collection Database.…

    • 472 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    What is the difference between a multiprocessor and a multiprocessing system? Multiprocessor is when a computer has more than one processor to do the work, Multiprocessing is when one processor does multiple jobs at once. 4. Where on the disk should you put your /boot partition or the root (/)…

    • 680 Words
    • 10 Pages
    Satisfactory Essays
  • Powerful Essays

    Chapters 1-4

    • 1910 Words
    • 8 Pages

    6. The Windows shell operates in _____ mode and the kernel operates in _____ mode.…

    • 1910 Words
    • 8 Pages
    Powerful Essays
  • Satisfactory Essays

    Unit 8 System Performance

    • 251 Words
    • 2 Pages

    2. With more processes loading and running at the same time the performance of the system will degrade due to increased disk activity.…

    • 251 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 3 Os

    • 1341 Words
    • 6 Pages

    +• Scheduling: Any processor may perform scheduling, which complicates the task of enforcing a scheduling policy and assuring that corruption of the scheduler data structures is avoided. If kernel-level multithreading is used, then the opportunity exists to schedule multiple threads from the same process simultaneously on multiple processors.…

    • 1341 Words
    • 6 Pages
    Good Essays
  • Good Essays

    MIS 320 Midterm

    • 3629 Words
    • 12 Pages

    A firewall is a combination of hardware and software that controls the flow of incoming and outgoing network traffic. Firewalls prevent unauthorized users from accessing internal networks. They protect internal systems by monitoring packets for the wrong source or destination, or by offering a proxy server with no access to the internal documents and systems, or by restricting the types of messages that get through, for example, e-mail. Intrusion detection systems monitor the most vulnerable points or “hot spots” in a network to detect and deter unauthorized intruders. These systems often also monitor events as they happen to look for security attacks in progress. Sometimes they can be programmed to shut down a particularly sensitive part of a network if it receives unauthorized traffic.…

    • 3629 Words
    • 12 Pages
    Good Essays
  • Satisfactory Essays

    Chapter 4 Solutions

    • 473 Words
    • 2 Pages

    (a) Since every resource has exactly one worker assigned to it, the bottleneck is the assembly station…

    • 473 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    7. What is a shell? How does it work with the kernel? With the user?…

    • 392 Words
    • 2 Pages
    Good Essays
  • Better Essays

    Alternately, an Intrusion prevention system is usually a hardware device that is connected to the network. It function is to monitor the network for nay unwanted behavior and to prevent such behavior.…

    • 754 Words
    • 4 Pages
    Better Essays