Practical ways of implementing preemptive scheduling without hardware support?
I understand that using Hardware support for implementing preemptive scheduling is great for efficiency.I want to know, What are practical ways we can do preemptive scheduling without taking support...
View ArticleWhat does having positive/negative ready_rate and running_rate do?
I would like to check if my answer is correct for the following question:I am asked:Give a discussion about how scheduling works in each of the following two cases:Both parameters running rate and...
View ArticleDoes sleep/nanosleep cause a process to give up the remainder of its time...
I'm wondering does sleep()/nanosleep() cause a process to give up the remainder of its time slice immediately? And can other threads or processes utilize the rest of the time slice directly?I wrote a...
View ArticleSJF Java With Arrays and Queues
I am trying to implement Shortest Job First scheduling algorithm in Java. I am having trouble getting the concept worked out in my head as well as getting code written out. Fortunately, however, I do...
View ArticleHow to calculate the Gantt Chart of a Multi-Level Queue that uses the...
Here is the question I am trying to solve for better detail I am trying to better my understanding of how multilevel queues work in terms of CPU Scheduling. I have calculated a Gantt chart sequence of...
View ArticleCPU scheduling Decisions
Operating System - CPU scheduling DecisionsThe question above talks about why CPU scheduling does not take place when ready to running.But I wander why CPU scheduling does not take place when new to...
View ArticleCreating a tool to compare the turnaround and response time in default and...
Can we create any tool so that we can be able to compare the turnaround and response time in XV6's default scheduler and any other scheduler?
View ArticleAverage wait time for pre-emptive priority scheduling
Given the following table for calculating and average waiting time for the processes for priority based preemptive scheduling.Process Burst Time Priority P1 10 3 P2 1 1 P3 2 4P4 1 5P5 5 2The gantt...
View ArticleSetting tasks to `SCHED_FIFO`: is this dangerous? Is this efficient?
I have some CPU-intensive tasks that I want to run on a server, and I want to make sure it gets highest priority by setting its scheduler to SCHED_FIFO (since the realtime scheduling class has higher...
View ArticleWhat is the difference in scheduling threads?
I am currently learning about simultaneous multi-threading, multi-core and multi-processor scheduling of threads. I checked some information, my understanding is:If there is a processor that supports...
View ArticleAbout Operating system States
In a non-preemptive CPU scheduling scheme, can the scheduling take place when a process or thread switches from the waiting state to the ready state? Why
View ArticleHow do Linux processes produce graphical output 60 times per second if the...
There's something I fundamentally don't understand about how multitasking works in Linux (and probably also in general). If I understand correctly, each time a process wants to change its output to the...
View ArticleWhat is burst in Uniprocessor scheduling?
What is "burst" in Uniprocessor scheduling? I still do not quite understand it, and is this a general term that can be applicable to any uniprocessor scheduling algorithm?
View ArticleAbout Operating system States
In a non-preemptive CPU scheduling scheme, can the scheduling take place when a process or thread switches from the waiting state to the ready state? Why
View ArticleDoes timeBeginPeriod(1) change TimeSlice?
one of my friends said that if I use timeBeginPeriod(1), It changes Time Slice.as a result, Context Switch will occur more often.as far as I know It only changes time resolution It doesn't change Time...
View ArticleIs disk arm position random when arriving a certain sector?
I'm trying to calculate average rotational latency for disk scheduling algorithm evaluation.I assumed that a disk with a sector size of 512 bytes, 2000 tracks per surface, 50 sectors per track and the...
View ArticlefreeRTOS Process switching
I tried to do a task which was to create 2 tasks. 1 task is to run cyclically every 95 ms and take 30 ms of processor time, and the second task is to run cyclically up to 33 ms and takes 15 ms of...
View ArticleDifference between dispatcher and context switcher?
I am studying OS now. I know context switcher is responsible for switch the process for CPU to run. It also save and restore the state of a process so that the execution can be resumed at a later time....
View ArticleCan a Deadlock occur with CPU as a resource?
I am on my fourth year of Software Engineering and we are covering the topic of Deadlocks.The generalization goes that a Deadlock occurs when two processes A and B, use two resources X and Y and wait...
View ArticleImplementing a priority scheduler in XV6
The requirements:I am trying to implement a multi level queue priority scheduler that has three different priorities 1 (lowest) ,2 ,3 (highest). Whenever a timer tick occurs, the highest priority...
View Article