Quantcast
Channel: Active questions tagged operating-system+scheduling - Stack Overflow
Browsing all 209 articles
Browse latest View live

Implementing 3 multi-priority ready queues for CPU thread

Addition of multi-priority queues, RQ0, RQ1, and RQ2, for each consumer or CPU thread• Differentiating three different types of processes: SCHED_FIFO, SCHED_RR, and SCHED_NORMAL• Addition of...

View Article


Implementing SJF Scheduling Algorithm in MINIX 3.2.1

I'm currently working on a project for an Operating Systems course at universityImplementing an SJF Scheduling Algorithm is required instead of the current MINIX 3.2.1 default scheduling algorithm.I'm...

View Article


whats the come back in this CPU scheduling algorithms task? [closed]

Consider the following set of processes:Once each process is done processing its “Burst Time”, it goes to the waiting queue, then “Comes back” to the ready queue after the time shown.You are required...

View Article

Multiprocessor scheduling using uniform gang scheduling

I tried to write trace for this problem but I don't sure my answer is correct or not and cpu waste calculated as time wasting / all cpus time correct ?enter image description here

View Article

Cooperative Scheduling vs Preemptive Scheduling?

In the book Core Java : Volume 1 Fundamentals -> chapter MultiThreading . The Author wrote as follows :"All modern desktop and server operating systems use preemptive scheduling. However, smaller...

View Article


Scheduling priority considerations

Schedulers in contemporary operating systems implicitly give higher priority to I/O bound process over CPU bound processes. Do you think that while scheduling the processes, CPU bound processes should...

View Article

Testing CPU Scheduling

How can I test a CPU scheduling algorithm (example:RR)?As you know, an operating system includes its own processes which run on the CPU. However, I want to do it in a pure environment without any other...

View Article

cpu scheduling response time?

Hi I got the following questions for homework but I am unsure about my conclusion any help would be appreciated 1) For what types of workloads does SJF have the turnaround times as FIFO?I think the...

View Article


Round Robin Implementation with Different Arrival Time

I have created a Round Robin Algorithm with C. The output I get for 5 processes with the same arrival time is correct but incorrect for different arrival times. Below is an example,RRB.C#include...

View Article


Problem on CPU scheduling algorithms in OS [closed]

Five batch jobs A, B, C, D and E arrive at a computer centre at almost at the same time. They have estimated running times of 10,6,2,4 and 8 minutes. Their priorities are 3,5,2,1 and 4 respectively,...

View Article

Xinu - Setting new priority for a Suspended state process

I have created a process X in Xinu along with other two processes (y, z). The y and z are high priority than X, so they both are running as per scheduling policy.In the backend, I want to increment the...

View Article

Python - OS Scheduler - Process and Thread - Theoretical Clarification

I am a complete newbie to OS scheduling, So please bear with my ignorance.I am trying to wrap my head around how the OS scheduling works with Python, to be specific, the Windows OS scheduling. I...

View Article

shouldnt process D execute at time 6 here?

enter image description hereI'm solving a Round Robin scheduling problem and encountered a discrepancy regarding the selection of the next process. In a specific instance, I expected process 'D' to be...

View Article


Is the response time and waiting time always the same in FCFS?

From my understanding since FCFS is non-preemptive, the time until it is selected by the scheduler for the first time is the same as the total time spent in the ready queue, thus the response time is...

View Article

MLFQ anf RR in XV6

I am trying to understand how the MLFQ and RR in XV6 work. An implementation i have seen is as follows:void rr_scheduler(void) { struct proc *p; struct cpu *c = mycpu(); c->proc = 0; intr_on(); for...

View Article


If burst time becomes 0 highestpriority must change how to do it?

Enter process 1 details (pid, arrival, burst, priority, color R, G, B):): 1 0 8 31 0 0Enter process 2 details (pid, arrival, burst, priority, color R, G, B):): 2 1 2 4 1 1 0Enter process 3 details...

View Article

Is a schedulable unit of CPU time slice process or thread?

I want to clarify whether "a schedulable unit of CPU time slice" is "process" or "thread" (kernel managed thread). What I mean by "schedulable unit of CPU time slice" is the unit which CPU scheduler of...

View Article


How does de OS know which solution to apply to a concurrency problem?

When x1, ..., xN proceses try to access some A resource, how does the OS know the particular solution to use for handling the issue of concurrency?If A is serially reusable then the solution can be a...

View Article

Round Robin Algorithm [closed]

Process Id : (P1 P2 P3 P4 P5). ARRİVAL TİME: (0 1 2 3 4 ). BURST TİME : (5 2 1 3 2). Q=2. And Soliton : Gantt-Chart (P5, P1, P2, P5, P4, P1, P3, P2, P1) . i don't understand why p3 is followed by p1...

View Article

Is a schedulable unit of CPU time slice process or thread?

I want to clarify whether "a schedulable unit of CPU time slice" is "process" or "thread" (kernel managed thread). What I mean by "schedulable unit of CPU time slice" is the unit which CPU scheduler of...

View Article
Browsing all 209 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>