Questions tagged [preemption]

131 questions
0
votes
2 answers

How does a scheduler regain control when wanted?

I'm reading about scheduling, but I can't figure out how a scheduler regains control after it invokes code in the user space. E.g. the scheduler passes the control to some app in the user space which does some infinite loop and no other hardware…
Franz Kafka
  • 10,623
  • 20
  • 93
  • 149
0
votes
2 answers

programatically determine amount of time remaining before preemption

i am trying to implement some custom lock-free structures. its operates similar to a stack so it has a take() and a free() method and operates on pointer and underlying array. typically it uses optimistic conncurrency. free() writes a dummy value to…
Lawrence Ward
  • 549
  • 1
  • 5
  • 17
0
votes
1 answer

Detailed multitasking monitoring

I'm trying to put together a model of a computer and run some simulations on it (part of a school assignment). It's a very simple model - a CPU, a disk and a process generator that generates user processes that take turns in using the CPU and…
user742925
  • 275
  • 1
  • 2
  • 9
0
votes
1 answer

Why Rails applications run Garbage Collector at all?

I was pretty sure, that all Rack application servers (I had some experience with Unicorn and Passenger) were creating single process for every worker when they were created, and its state was "frozen". Whenever app server receives request to handle,…
samuil
  • 5,001
  • 1
  • 37
  • 44
0
votes
1 answer

Threaded program Vs Goto

I have a system which consists of multiple threads, lets say process A, B and C and these processes are completely written in SDL which eventually gets converted to C language after compilation. I also have an equivalent simulation environment with…
Utkarsh Kumar
  • 567
  • 1
  • 5
  • 17
0
votes
1 answer

Suspending hadoop nodes temporarily - background hadoop cluster

I wonder if it is possible to install a "background" hadoop cluster. I mean, after all it is meant to be able to deal with nodes being unavailable or slow sometimes. So assuming some university has a computer lab. Say, 100 boxes, all with upscale…
0
votes
1 answer

Process non-preemptable on Linux (2.6.32)

I'm trying to make a process non preemptable. I've changed the scheduler policy to SCHED_FIFO and set the rtprio to 99. As soon as the process starts, in absence of IO interrupts, do I have the assurance that the process won't be preempted by other…
user1430869
  • 35
  • 1
  • 4
-1
votes
1 answer

Anylogic: Despite defining downtime with a schedule, instead of the service getting interrupted when downtime kicks in it continues

I have used a source service and sink. service uses some resource as per a defined schedule. this resource is having a downtime as per a defined schedule, also the downtime has a preemption policy. When the downtime kicks in, the service shall get…
-1
votes
1 answer

What is a multi-rate non preemptive OS?

I have this question related to embedded systems, this expression which i found in a source file of a dispatcher: What is a multi-rate non preemptive OS / Dispatcher ? I know a little about dispatcher , non-preemptive systems RTOS based on my…
The Beast
  • 1,629
  • 2
  • 29
  • 42
-1
votes
1 answer

Preempt a process by a timer interrupt

There are two processes (P-A and P-B) running on the same CPU core. Process B is multithreaded. I want process A to be preempted after every 2 microseconds by a thread of Process B. Is it possible to write a timer interrupt (or anything else) to…
Scissor
  • 153
  • 2
  • 14
-2
votes
1 answer

What was the reason of the non-preemptivity of older Linux kernels?

Why did the first Linux developers choose to implement a non-preemptive kernel? Is it to save synchronization? As far as I know, Linux was developed in the early 90's, when PCs had a single processor. What advantage does a non-preemptive kernel give…
Narden
  • 1
  • 1
1 2 3
8
9