Questions tagged [preemptive]

Preemptive Scheduling of processes may occur due to a variety of reasons :

  1. The process requires more time than the time quantum assigned to it
  2. A process of a higher priority has entered the queue
  3. A process has less next-CPU-burst time then the one being executed.

In either of the cases, a context switch will occur. The context of the switched process will be saved and that of the new process will be loaded.

84 questions
10
votes
2 answers

preemptive authentication why

Why preemptive authentication required ? System.setProperty("httpclient.authentication.preemptive", "true"); I had written web services access client program in java. Where we were setting username and password in call object and that was working…
Santosh
  • 782
  • 4
  • 15
  • 38
9
votes
3 answers

Multithreading in Lua

I was having a discussion with my friend the other day. I was saying how that, in pure Lua, you couldn't build a preemptive multitasking system. He claims you can, because of the following reason: Both C and Lua have no inbuilt threading libraries…
RCIX
  • 38,647
  • 50
  • 150
  • 207
7
votes
1 answer

Is Java preemptive?

I've seen many answers to this question but I'm still not sure. One of them was "Java is preemptive". (The JVM schedules using a preemptive, priority based scheduling algorithm (usually round robin algorithm). The second was that if 2 threads with…
Matan Touti
  • 191
  • 2
  • 14
6
votes
1 answer

Download a file with DefaultHTTPClient and preemptive authentication

After I had a lot of problems with preemptive authentication , I got it finally working. Now the next problem. I want to get a file with it, but I don't know how. I thought the file data might be in the variable response, but it isn't. Any ideas how…
Nils
  • 1,705
  • 6
  • 23
  • 32
6
votes
1 answer

jquery ajax & preemptive basic auth

I am trying to reach some RESTful services that are running under Apache preemtive basic authentication. I am using jquery Ajax, and sending the user and password with the 'Authentication' header. However, my request is throwing an empty error every…
Gabriel Mendez
  • 1,115
  • 1
  • 9
  • 28
5
votes
1 answer

Preemptive & Nonpreemptive Kernel VS Premptive & Nonpreemptive Scheduling

I'm struggling to understand the difference between between preemptive and nonpreemptive kernels, and premptive & nonpreemptive scheduling. From Operating System Concepts (Ninth Edition), Silberschatz, Galvin and Gagne: A preemptive kernel is where…
Physco111
  • 217
  • 2
  • 7
5
votes
0 answers

How to do a preemptive authentication with c#?

Our clients have a Java Web Service that we want to cosume from c#.net application, but when i try to consume or call any method i get an Internal Error message. This web service needs an username and password to authenticate trough the server…
user1757223
  • 71
  • 2
  • 4
4
votes
2 answers

How does erlang implements preemptive scheduling with one OS thread?

I want to know how erlang's VM preempts the running code and contexts the stack. How it can be done in a language such as c?
4
votes
3 answers

Preemptive Multithreading in Delphi

I've read about Preemptive Multithreading here and here. Is there a way to do this in Delphi and how does this compare (advantages and disadvantages) to other methods of threading in Delphi?
lkessler
  • 19,819
  • 36
  • 132
  • 203
4
votes
0 answers

Preemptive authentication with JAX-RS?

I'm a long time reader and first time user so please go easy on me. I'm attempting to use preemptive auth with javax.ws.rs.client.Client. I've got this working with HTTPClient, but I can't figure out how to accomplish the same with a JAX…
catphysh
  • 41
  • 2
3
votes
1 answer

How to avoid preemptive_oledbops SQL Server 2008 with Linked Servers

We have two SQL Servers and have them set up as linked servers. There is one particular stored procedure that when run has to join tables from the linked server to it's own. Often times it seems to take forever and after looking a bit, it seems that…
Prescott
  • 7,312
  • 5
  • 49
  • 70
3
votes
1 answer

Dotfuscator command exited with code 1 xamarin.ios

I am trying to use PreEmptive Solutions - Dotfuscator with my Xamarin.IOS app, but the build fails and I am getting this error: I have done all the steps from here: https://www.preemptive.com/obfuscating-xamarin-with-dotfuscator My Xamarin.Android…
Hadi Al Tinawi
  • 429
  • 7
  • 22
3
votes
1 answer

modified lua: Lua_close freezes in pthread

From my lua state L1, I call my registered c function makethread. static int makethread(lua_State *L1) { printf("makethread!\n"); pthread_t thread2; pthread_create( &thread2,NULL,dumb_thread,NULL); printf("makethread complete!\n"); …
lm317
  • 161
  • 4
3
votes
1 answer

basic CPU scheduling "waiting to ready"

Is waiting to ready in scheduling counted as preemptive or non-preemptive? At first I thought it was non-preemptive because it involve IO or event to be done before it can switch, however my friend told me that it is preemptive because it need to…
3
votes
0 answers

Java thread does not get to execute - low CPU usage but high IO-wait

Ubuntu 12.04 LTS java -version java version "1.6.0_38" Java(TM) SE Runtime Environment (build 1.6.0_38-b05) Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode) 4 core CPU - some Dell server hardware 10 threads from time to time run a…
Per Steffensen
  • 613
  • 2
  • 7
  • 19
1
2 3 4 5 6