Java scheduling
1 Answer(s)      6 years and 4 months ago
Posted in : Java Interview Questions
What is the difference between preemptive scheduling and time slicing?


View Answers

October 22, 2010 at 3:20 PM


here is the answer.

Preempitive scheduling is the policy of scheduling that preempt the execution of current process and thread. And execute till such time its execution has completed or until a thread of a higher priority comes into existence or the priority of one of the waiting threads is increased.

Time Slicing is where each thread that is waiting to execute will share the CPU time equally. One thread will exeucte for n seconds or milliseconds, then go to the waiting state again. the CPU scheduler will then determine which of the other waiting threads will execute next.


Related Tutorials/Questions & Answers:
Java scheduling
Java scheduling  What is a task's priority and how is it used in scheduling
Java scheduling
Java scheduling  What is the difference between preemptive scheduling and time slicing
Java scheduling
Java scheduling  What is the difference between preemptive scheduling and time slicing?  Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority
Job scheduling in Java
Job scheduling in Java  Job scheduling in Java In my new Java... of all please explain me what is job scheduling in Java and how one can use this feature in their application. Example of Java job scheduling will really work
Java task scheduling
Java task scheduling  What is a task?s priority and how is it used in scheduling
Java task scheduling
Java task scheduling  What is a task?s priority and how is it used in scheduling
Job scheduling with Quartz - Java Server Faces Questions
Job scheduling with Quartz   I have an JSF application deployed... to database. It works fine but when the Quartz scheduler fires a job it accquires... while initialization or while calling the job.  Hi,How you
Thread scheduling
Thread scheduling  What is the algorithm used in Thread scheduling?  Java uses fixed-priority scheduling algorithms to decide which thread to execute. The Java run-time environment supports a very simple, deterministic
running the job scheduling using quartz - IDE Questions
running the job scheduling using quartz  I am using netbeans IDE and I am planing use job scheduling I have downloaded all the required jar files and I have write the code to run a separate thread continuously along with the main
Task Scheduling in JAVA
Task Scheduling in JAVA       In some applications some task need to run periodically... in company's permanent record. Java provide facility to schedule tasks as per
Introduction to Quartz Scheduler
brief features. Quartz Schedular is extensively used for Job Scheduling in java applications. Here, you will learn how Quartz Job Scheduler helps you to develop job scheduling application in Java. We will show you the examples to use
Q - Java Terms
Q - Java Terms       Java Quartz Framework Quartz is an open source job scheduler.  It provides powerful mechanisms for job scheduling. It can
Java Quartz Framework
Java Quartz Framework     ... mechanisms for job scheduling. It can be used with any application using JSE... application written in java as this is entirely written in Java. It can be used
Java developer desk
Java developer desk         ... featured, an open source job scheduling system that can be integrated..., or even thousands of jobs, whose tasks can be defined as standard Java
what technique - Java Beginners
what technique  what technique or algorithm i need to use to develop a system a scheduling time table in java
Scheduling a Timer Task
Scheduling a Timer Task       In this section, you can learn how to schedule a timer task to run at a certain time and repeatedly. There is an example given for the illustration
creating reports in java
creating reports in java  how to create reports automatically in java and send it via mail by scheduling tine for weekly,monthly basis
java project - Design concepts & design patterns
java project  Hi, I wish to write a Java application project in school. I wish to humbly request for sample java project source codes to enable me write one. eg Hotel Reservation System, Flight scheduling system, Passenger
threads in java - Java Beginners
threads in java  what is the difference between preemptive scheduling and time slicing?   hi friend, In Preemptive scheduling, a thread continues to execute till its execution has completed until it enters
Open Source Calendar
When choosing group calendaring and scheduling software, many organizations adopt... scheduling calendar-and with it comes the first publicly available release of its... version includes group scheduling with free/busy indication; the ability to import
Sitemap Java Tutorial Section
Source PDF Libraries | Java Ftp Libraries | Java ClassPath | Task Scheduling... | Site Map | Business Software Services India Java Tutorial Section Core Java | JSP Tutorials  | J2ME-Tutorials | JDBC Tutorials | JEE 5
garbage collector - Java Interview Questions
. Programming in Java using GC can avoid the problem of memory & scheduling . (2... Java application. GC is the process that automatically freeing objects that are no longer referenced by the java program. JVM specification does not require
java  diff bt core java and java
java  what is java
Java   Whether Java is pure object oriented Language
java  different between java & core java
java  explain technologies are used in java now days and structure java
java   why iterator in java if we for loop
JAVA  how the name came for java language as "JAVA
java  what is java reflection
java  is java open source