Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem Set 0 2 : Processes and Threads CSci 4 3 0 : Operating Systems Overview In this written problem set you will be given
Problem Set : Processes and Threads
CSci : Operating Systems
Overview
In this written problem set you will be given some exercises in order to help expand your understanding of the concept of processes and threads and what functions they perform in a modern operating system.
All modern multiprogramming operating systems, from singleuser systems to mainframes and clustered servers are built around the concept of processes and threads. Answer the following questions about processes, process state transitions, threading and multiprogramming. Provide adequate written description and work to support your arguments and conclusions in the answers to your questions. Show all work.
Learning Objectives
Better understand processes, process preemption, process modes, etc.
Understand process states and process state transitions, and what purpose they serve in a multiprogramming operating system.
Explore thread concepts, learn what responsbilities threads handle in an OS and which aspects are part of processes.
Begin to understand issues of thread concurrency.
Submission
All work must be submitted by the announced due date for this assignment to guarantee you will receive an evaluaiton for your work. A submission folder has been created in our MyLeoOnline class shell for this assignment. Submit all work as an attachment to the submission folder. Ensure your work is readible and neatly presented. Electronic work can be submitted in doc, odt, pdf or other commonly used electronic document formats. Handwritten work can be scaned or photographed, though it is preferrable if you collect scans into a single document like a pdf to submit them. If scanning handwritten work, it is your responsibility to ensure it can be read and understood sufficiently, otherwise the submission may not be graded.
Process Priority and Swapping
Consider the state transition diagram of Figure b from our class textbook. Suppose that it is time for the OS to dispatch a process and that there are processes in both the Ready state and the ReadySuspend state, and that at least one process in the ReadySuspend state has higher scheduling priority than any of the processes in the Ready state. Two extreme policies are as follows Always dispatch from a process in the Ready state, to minimize swapping, and always give preference to the highestpriority process, even though that may mean swapping when swapping is not necessary.
Questions
Suggest an intermediate policy that tries to balance the concerns of priority and performance. Compare your suggestion to the two extremes described, and analyze how swapping and performance is impacted.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started