Question

describe, in step-by-step form, the procedure that the operating system would use to switch from one...

  1. describe, in step-by-step form, the procedure that the operating system would use to switch from one user to another in a multiuser time sharing system.
  2. Discuss the steps that take place when a process is moved a) from ready state to running state; b) from running state to blocked state; c) from running state to ready state, and d) from blocked state to ready state.
  3. Explain deadlocking.
  4. The CPU scheduling algorithm (in UNIX) is a simple priority algorithm. The priority for a process is computed as the ratio of the CPU time actually used by the process to the real time that has passed. The lower the figure, the higher the priority. Priorities are recalculated every 10th of a second.
  1. What kind of jobs are favoured by this type of algorithm?
  2. If there is no I/O being performed, this algorithm reduces to a round-robin algorithm. Explain.
  3. Discuss this algorithm in terms of the scheduling objectives give in the reference text.
  1. Explain the bootstrap procedure for a diskless workstation.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

a) from ready to running-

  The process is waiting to be assigned to a processor. Ready processes are waiting to have the processor allocated to them by the operating system so that they can run.
Once the process has been assigned to a processor by the OS scheduler, the process state is set to running and the processor executes its instructions.

b)from running to blocked state-

process moves into the waiting state if it needs to wait for a resource, such as waiting for user input, or waiting for a file to become available.

c)running state to ready state:

Process may come into ready state from running state for interrupted by the scheduler to assign CPU to some other process.

d) from blocked state to ready state:

the process in the blocked state waiting for the resource which is not available and after the process gets the resourse for which is waiting for then it go back to the ready state and waiting for the processor to assign it.

deadlock

A process in operating systems uses different resources and uses resources in such way that,
1) Requests a resource
2) Use the resource
3) Releases the resource

Deadlock is a situation where a set of processes are blocked because each process is holding a resource and waiting for another resource acquired by some other process.
Consider an example when two buses are coming toward each other on same track and there is only one track, none of the buses can move once they are in front of each other. Similar situation occurs in operating systems when there are two or more processes hold some resources and wait for resources held by others.

Deadlock can arise if four conditions hold :
Mutual Exclusion: One or more than one resource are non-sharable (Only one process can use at a time)
Hold and Wait: A process is holding at least one resource and waiting for resources.
No Preemption: A resource cannot be taken from a process unless the process releases the resource.
Circular Wait: A set of processes are waiting for each other in circular form.

Less cpu bound and more i/o bound jobs are favoured in this type of algorithm.

since there is no i/o bound jobs so only cpu bound jobs ,and priorities are re-calculated every 10 second as it say in the above. so it drastically involve the flavour of round-robin algorithm.

functions of bootstrap:

bootstrap request is broadcast

bootstrap requires only a single packet exchange

bootstrap uses UDP-> Bootstrapping can occur across a router

bootstrap UDP to use checksum

bootstrap replies are also broadcast (since no one knows the requesters IP address, ARP will fail).

bootstrap requests and replies are sent with "no fragment bit" set.

Multiple replies -> process the first one

Clients uses timeout and retransmission

The timeout interval is random to avoid synchronization after a power failure

  

Add a comment
Know the answer?
Add Answer to:
describe, in step-by-step form, the procedure that the operating system would use to switch from one...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Opearting system 5. [27pts.] Given the following set of processes, with arrival times, priorities, and the...

    Opearting system 5. [27pts.] Given the following set of processes, with arrival times, priorities, and the length of the CPU burst in ms: Process Arrival Time Burst time Priority P1 P2 P3 2 10 P4 (Note: a lower number means higher priority; processes P2- P4 arrive at the same time, in the given order) a. Draw a Gantt chart showing a FCFS scheduling algorithm. b. Draw a Gantt chart showing a non-preemptive Priority scheduling algorithm. Draw a Gantt chart showing...

  • State transition diagram used for operating system management of the Process Control Block has the following...

    State transition diagram used for operating system management of the Process Control Block has the following states A New (Create)– In this step, process is about to be created but not yet created, it is the program which is present in secondary memory that will be picked up by OS to create the process. Ready -> Ready to run. After creation of a process, the process enters the ready state i.e. the process is loaded into the main memory. The...

  • Q.6. Consider a preemptive operating system where processes have priorities and a running process gets preempted...

    Q.6. Consider a preemptive operating system where processes have priorities and a running process gets preempted (i.e., forced to leave the CPU) as soon as a higher priority process is ready to run. The life cycle of a process, other than the very first process, begins with a "spawn" by another process and ends with either a regular "exit" by the process or a "terminate (process_id)" command by another process of equal or higher priority. COMP 346 – Fall 2019...

  • (30 points) Assume you have three processes with the following attributes running on a single CPU...

    (30 points) Assume you have three processes with the following attributes running on a single CPU (uniprocessor system): Process 1/0 Burst Total CPU Time Arrival Time CPU Burst | 05 22 12 B 7 10 C D Create three scheduling simulations for these processes using the following algorithms: a. First Come First Served (FCFS) b. Round Robin, Time Slice = 2 c. Shortest Job (CPU Burst Time) First with NO Preemption Use the simulation format we covered in class to...

  • You are to simulate a dispatcher using a priority queue system. New processes are to be...

    You are to simulate a dispatcher using a priority queue system. New processes are to be entered using a GUI with priority included (numbering should be automatic). Processes are also to be terminated by GUI command. Context switches are to be by command with the cause of the switch being immaterial. Assume only one CPU. Priorities and numbers of processes can be kept small, just big enough to demonstrate the below listed functionality. You may pre-populate the queues initially from...

  • This assignment requires you to create simulations for different scheduling algorithms commonly employed by operating systems...

    This assignment requires you to create simulations for different scheduling algorithms commonly employed by operating systems to achieve multiprogramming. All problems in this assignment assume the following: The simulations you will be creating are for a uniprocessor system (single CPU). Processes in these simulations will require CPU bursts of one or more time units followed by I/O bursts of one or more time units. For simplicity’s sake, when more than one process is executing its I/O burst at the same...

  • Choose the correct answer 1. A virtual machine executes on a host operating system and a...

    Choose the correct answer 1. A virtual machine executes on a host operating system and a hypervisor provides an API to the actual hardware 2. The guest OS knows that it is not accessing the actual hardware so that it can perform better 3. The VM may supply an environment that is different than the actual host hardware 4. Applications running within the VM have an illusion that they are executing on a real machine Select one: a. All the...

  • <Operating System> 1. Which scheduling objectives from module(CPU Scheduling) would also apply to disk scheduling? 2....

    <Operating System> 1. Which scheduling objectives from module(CPU Scheduling) would also apply to disk scheduling? 2. Which disk scheduling algorithm is the most suitable for solid-state drives? Why?

  • During the course of execution, process moves from one state to another state in the state...

    During the course of execution, process moves from one state to another state in the state diagram. The only state transition that is initiated by the user process itself is none of the options admit dispatch release Question 4 A scheduler controls the running sequence of processes. The algorithm used by the scheduler is called the scheduling algorithm. Which of the following features is not possible to achieve? Ensuring that each process gets its fair share of the CPU Keeping...

  • Description In this homework, you are asked to implement a multithreaded program that will allow ...

    Description In this homework, you are asked to implement a multithreaded program that will allow us to measure the performance (i.e, CPU utilization, Throughput, Turnaround time, and Waiting time in Ready Queue) of the four basic CPU scheduling algorithms (namely, FIFO, SJE PR, and RR). Your program will be emulating/simulating the processes whose priority, sequence of CPU burst time(ms) and I'O burst time(ms) will be given in an input file. Assume that all scheduling algorithms except RR will be non-preemptive,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT