Questions tagged [preemptive]
The preemptive tag has no usage guidance, but it has a tag wiki.
preemptive
85
questions
0
votes
0
answers
46
views
How to implement a gantt chart
Hello i want to integrate a combined CPU scheduling gantt chart,
Here is my code without a gantt chart (this works perfectly, but still no gantt chart):
#include <iostream>
#include <fstream&...
0
votes
0
answers
35
views
Shortest Job First Preemptve technique
I'm working on a Java program to simulate the Shortest Job First (SJF) preemptive algorithm and then visualize the execution using a Gantt chart. I have the algorithm logic implemented, but I'm ...
0
votes
1
answer
76
views
Non-preemptive authentication is not working with Jetty client library
I am trying to do non-preemptive authentication (get 401-unauthorized with request round trip) with Jetty client. But I'm unable to get request round trip after using below code snippet.
...
1
vote
1
answer
333
views
Linux Kernel thread preemption
I am having a doubt on the premptiveness of the Linux kernel. I know that user space processes and threads are premptible, but what about kernel level threads, those created using kthread_create.
If a ...
0
votes
1
answer
118
views
How to obfuscate const variable values using dotfuscator
This is my code:
namespace Password.Lib
{
public class PassRepo: IPassRepo
{
const string mEntropy= "djbiudv-dsvjkbdjs-svdjkbv";
const string logLevel = "...
0
votes
1
answer
329
views
Do we still need runtime.Gosched() in go 1.19?
Regarding this post
As that post mentioned, we don't need to put runtime.Gosched() anymore, since Go 1.15
But I still got the issue in Go 1.19.
Concisely,
I don't use runtime.Goshed()
I used runtime....
0
votes
0
answers
70
views
Using Constraint Programming to model preemptive task with energy allocation over periods
I have a linear model that works fine but has a huge amount of time of resolution that I want to reduce. One approach is that I convert it to constraint programming.
Supposing that I have a specific ...
1
vote
1
answer
768
views
Azure Spot VM average up time [closed]
I am trying to evaluate whether I should use Spot VMs and the measure for availability is given as a percentage by Azure.
https://www.linkedin.com/pulse/viewing-eviction-rates-spot-virtual-machines-...
0
votes
1
answer
763
views
Apache httpclient 4.5.13 preemptive authentication or not
I came across this code, which I am trying to refactor the deprecated usage of DefaultHttpClient to use HttpClientBuilder and trying to replicate the authentication part.
In HttpClientBuilder world I ...
1
vote
0
answers
93
views
Creating a schedule for an example task set with non-preemptive Deadline Monotonic (fixed priority) scheduling
In the effort of trying to understand a fixed priority scheduling scheme, such as Deadline Monotonic schedulers, amidst the horribly written definitions online -- I'm trying to schedule an example ...
0
votes
1
answer
371
views
gcp vm workers default gateway
I am using GCP preemptible VMs for my workers. However, GCP limits the in-use addresses to 8. I requested for increase, but they rejected it. I tried to use their NAT, but it seems to be a 1:1 NAT. ...
1
vote
0
answers
61
views
How to calculate the Starting time in a preemptive priority scheduling?
The problem I am facing is that I can not find a way to calculate the start time (called startedAt in the code), so I am able to calculate the turnAround times and the wait times.
The logic I am using ...
0
votes
1
answer
37
views
Would preemptive scheduling affects speed of moving file?
Suppose I move file from Drive C to D.
If I set the environment such OS will schedule processes as preemptive scheduling, would it be affect the speed of moving file?
I have heard that moving file is ...
0
votes
1
answer
46
views
What kind of procedure is used to calculate the thread
there is a thread in the following task. How can I see whether Round Robin, FIFO or Preemptive Scheduling was used there?
void High_Thread(void const *argument)
{
while(1)
{
...
1
vote
1
answer
864
views
How to implement Priority Preemptive Scheduling (similar to interrupts) with threads in C++
I want to write a C++ program on Windows (but preferably to support cross-platform) in which I have two threads that are scheduled based on Priority Preemptive Scheduling - which is like an interrupt ...