Questions tagged [preemption]
131 questions
0
votes
1 answer
Increasing time slices for a particular process via implementing a system call in xv6
I am trying to implement a system call in xv6 OS Increase_time( int n) which when executed will increase the timeslice of a program that calls it by n times. The default xv6 scheduler uses a simple FCFS and RR policies with each process having the…

Nishka Sharma
- 1
- 2
0
votes
1 answer
Preemptive Cloud Run on GKE
Is it possible to create a Cloud Run on GKE (Anthos) Kubernetes Cluster with Preemptible nodes and if so can you also enable plugins such as gke-node-pool-shifter and gke-pvm-killer or will it interfere with cloud run actions such as autoscaling…

john_taylor
- 3
- 2
0
votes
1 answer
Why does spin_unlock_bh function enables preemption without calling the scheduler
I was looking into the spinlock code of kernel code (version 3.10.1), and didnt understand one thing.
When acquiring the spinlock through the function spin_lock_bh(), it goes ahead and calls preempt_disable(). This is the same as other spinlock…

Haris
- 12,120
- 6
- 43
- 70
0
votes
0 answers
Is AWS pre-emptive (for HTTP result callbacks)?
I know zero of AWS and am asking for a friend who is a novice Node.Js coder and getting a little out of his depth.
He sends an HTTP request then calls a function which will take some time to execute.
If the HTTP response arrives while the long…

Mawg says reinstate Monica
- 38,334
- 103
- 306
- 551
0
votes
2 answers
is AnyLogic End of Task Preemption possible in version 8?
I'm running a simulation model on AnyLogic. I recently updated to version 8 University 8.4.0. Before I that I had no problems running the simulation. Now I get the following error after running the simulation for a short…

zarmin
- 45
- 4
0
votes
2 answers
how can I increase failure tolerance for spark jobs on yarn? Job failed due to too many preemntions?
How can I increase failure tolerance on yarn? In a busy cluster my job fails due to too many failures. Most of the failures were due to Executor lost base by preemption.

Georg Heiler
- 16,916
- 36
- 162
- 292
0
votes
1 answer
Ensure that code within CompletableFuture callback executes after
Say I have this:
public void foo(){
CompletableFuture.delayedExecutor(1, TimeUnit.MILLISECONDS).execute(() -> {
doSomethingA();
});
doSomethingB();
}
Is there any guarantee…

Alexander Mills
- 90,741
- 139
- 482
- 817
0
votes
2 answers
What happens when a task is executing critical section but it needs to be scheduled out on a uniprocessor system with preemption disabled?
Here is a scenario. Let’s say that a kernel task is running on a uniprocessor system with preemption disabled. The task acquires a spin lock. Now it is executing it’s critical section. At this time, what if the time slice available for this task…

user3778271
- 89
- 4
0
votes
1 answer
When does the operating system gain control over the CPU when a user process is executing
I am currently studying about operating systems and have something that I do not completely understand. In a time shared system with preemption, processes are always swapped. However, if a user process is executing on one of the CPUs there can be no…

ficabj5
- 111
- 10
0
votes
1 answer
What is the relation between reentrant kernel and preemptive kernel?
What is the relation between reentrant kernel and preemptive kernel?
If a kernel is preemptive, must it be reentrant? (I guess yes)
If a kernel is reentrant, must it be preemptive? (I am not sure)
I have read https://stackoverflow.com/a/1163946, but…

Tim
- 1
- 141
- 372
- 590
0
votes
1 answer
Lottery Scheduling - preemptive - How to manipulate the tickets after a process is choosen?
Assume there are 2 processes with tickets A:75 and B:25. Now if lottery results in ticket number = 66, that means we run A.
This is okay for non-preemptive kernels because A will run until A is complete and then will not participate in the…

Aviral Verma
- 488
- 4
- 11
0
votes
1 answer
Kubernetes 1.11 priority and preemption do not work
I followed the following instruction on Kubernetes 1.11 but priority and preemption do not work.
https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#how-to-use-priority-and-preemption
I create 2 pods one high-priority (with…

Tan Le
- 319
- 1
- 3
- 9
0
votes
1 answer
Can Kubenetes pod preemption happens between multi schedulers?
From document I know that a Pod must be scheduled by one scheduler. Such as scheduler A schedule pod a and scheduler B schedule pod b.
The question is that: can a preempt b if b is already running? Which scheduler will do this operation?

Gong WeiBao
- 31
- 3
0
votes
1 answer
Create a priority based round robin algorithm
In this question I want to develop a Priority Based Round Robin algorithm for schedule some tasks.
This is the input tasks
AT = Arrival Time
BT = Burst Time
P = Priority
Process AT BT P
1 0 8 5
2 1 4 1
3 2 9 4
4 …

kasvith
- 377
- 5
- 19
0
votes
0 answers
How does linux detect a process which is hogging the CPU and should be removed rather than preempting?
In a work queue, if a function is hogging the system(eg. running an infinite loop), how will the kernel know that it is hogging and it has to either preempt or cancel the work?

Shashwat KN
- 23
- 4