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

Short term, Long term and medium term schedulers

What are the scheduling algorithms(FCFS,SJF,SRTF,LRTF,RR e.t.c) used by short term, medium term and long term schedulers respectively ?

View Article


Is using a hardware timer the only way to implement process scheduling?

I have read that an operating system implements scheduling using the following method: The CPU must have a hardware timer that fires an interrupt every X milliseconds. Once the timer interrupt fires,...

View Article


How is fairness of thread scheduling ensured across processes?

Every process has at least one thread of execution and I read somewhere that modern Operating Systems only schedule Thread and not process. So if there are two processes running in the system - P1...

View Article

scheduling realtime systems vs on-line systems vs batch systems

Im trying to understand how their scheduling criteria works. why IO bound and CPU bound mix are more important to batch processes?. does Preemptive scheduling important to all? thanks alot for the help.

View Article

Why is my programme showing Segmentation Fault on Ubuntu but working fine on...

Experts, this is the program I made for First Come First Serve Scheduling in C language. For the inputs like - 4 0 0 0 0 1 2 3 4 and inputs like - 5 0 1 2 3 4 4 3 1 2 5 My program is giving...

View Article


Automatically Execute R Script When (text) File is Updated

I want to automatically run/ execute my R script when a Text file is updated. So far, I only can schedule an execution of my R script for a specific time (per hour, daily or month) see (Scheduling R...

View Article

SJF Scheduling: Selecting Process based on predicted CPU Burst Time

In SJF Algorithm, we predict the next CPU Burst time using the formula: τ(n+1) = α*t(n) + (1-α)*τ(n). And then we select the process with the shortest predicted burst time. Now my question is: do we...

View Article

Image may be NSFW.
Clik here to view.

Shortest Time Remaining Next (STRN) Scheduling

Another user posted this question on Shortest Job First (SJF). Here's the example: How would this be solved for Shortest Remaining Time Next? The preemptive version of Shortest Job First. I understand...

View Article


Unable to set scheduling policy using sched_setscheduler() function?

I am new to OS programming. So, I wrote this code to change the scheduling policy of a background process, whose process ID I supply through a command line argument, but the sched_setscheduler()...

View Article


How to determine scheduling evaluator metrics

So I've read up that the important basic metrics are that of Waiting Time, Turnaround Time and Response Time. Though my program provides me with the following variables: createdTime //process created...

View Article

Sorting CSV by column

So I am trying to sort the column for arrival time so that the earliest arrival time is first. Im new to csv files in java so struggling big time. I've managed to read the csv file and print using an...

View Article

Image may be NSFW.
Clik here to view.

Shortest Job First (non preemptive) with future prediction scheduling example

I understand how shortest job first (non preemptive) scheduling works. Basically, when the CPU finish the current job it will select the shortest job in the queue to execute next. This is an example I...

View Article

what happens at processor and schedule queue level when I call time.sleep()...

Hey I am just trying connect my learning in Operating System subject and python programing. When I run time.sleep(10) what exactly happens behind the scene. My confusion here is if CPU needs to keep...

View Article


Shortest Job First for Multiple Queues

Currently, I have a program which simulates a shortest job first strategy for a set of processes. However, my task is to make it for multi-priority level queues. So a queue for HIGH, MILD, LOW: HIGH =...

View Article

What scheduling algorithms does Linux kernel use?

What scheduling algorithms does Linux kernel use? Where can I get more info about linux's kernel? (OS first course... student level)

View Article


MLFQ only functions when other class runs

I have a multi-level feedback class which I am not sure what its doing - it only ever seems to print the output I want when I run a pre-emptive multi-level class before it, when I don't it prints a...

View Article

With modern OS schedulers, does it still make sense to manually lock...

I recently learned that sometimes people will lock specific processes or threads to specific processors or cores, and it's thought that this manual tuning will best distribute the load. This is a bit...

View Article


How does the OS scheduler regain control of CPU?

I recently started to learn how the CPU and the operating system works, and I am bit confused about the operation of a single-CPU machine with an operating system that provides multitasking. As such,...

View Article

How to distinguish between I/O bound and CPU bound jobs ?

How does a long term scheduler decide which job is I/O bound and which one is CPU bound? I heard that by using cpu burst we can distinguish between I/O bound and CPU bound jobs, but how is the CPU...

View Article

Multilevel feedback queue scheduling Algorithm

How would the multilevel feedback queue scheduler perform on multi core processors? Is it Multi core scheduling Algorithm?

View Article
Browsing all 209 articles
Browse latest View live


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