Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


neelam
Thread scheduling
1 Answer(s)      4 years and 3 months ago
Posted in : Java Interview Questions


What is the algorithm used in Thread scheduling?

Advertisement
View Answers

October 16, 2010 at 2:46 PM


Java uses fixed-priority scheduling algorithms to decide which thread to execute. The Java run-time environment supports a very simple, deterministic algorithm called fixed-priority scheduling. This algorithm schedules threads on the basis of their priority relative to other Runnable threads. The thread with the highest priority runs first if another thread with a higher priority is started, Java makes the lower priority thread wait if more than one thread exists with the same priority, Java quickly switches between them in round-robin fashion BUT only if the operating system uses time-slicing.


Related Tutorials/Questions & Answers:
Thread scheduling
Thread scheduling  What is the algorithm used in Thread scheduling?  Java uses fixed-priority scheduling algorithms to decide which thread... algorithm called fixed-priority scheduling. This algorithm schedules threads
Java scheduling
Java scheduling  What is a task's priority and how is it used in scheduling
Advertisements
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 project, we have to develop a feature of Job scheduling.. for example i have to create... of all please explain me what is job scheduling in Java and how one can use
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
thread
thread  can parent thread be dead if child thread is not dead
Thread
Thread  what is the use of thread
Thread
Thread  Thread Life Cycle
Thread
Thread  Explain two ways of creating thread in java. Explain at three methods of thread class.   Java Create Thread There are two main ways of creating a thread. The first is to extend the Thread class and the second
Thread
Thread  What is multi-threading? Explain different states of a thread... processor system. States of Thread: New state ? After the creations of Thread instance the thread is in this state but before the start() method invocation
Thread
to the thread constructor eventhough we had created only one thread and if you say we have added to point to the current thread then why we have not added this in the following line "s=s1" Pls reply...... class MyThread extends Thread { Thread
Thread
Thread  class Extender extends Thread { Extender(Runnable run...(); } public void run(){ System.out.println("Extender Thread is Started :"); //new Thread(new Implementer()).start(); } } class Implementer
Thread
Thread  what happen when we call the Wait(),Notify() and NotifyAll() methods in the Thread
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
Thread
Thread  will this code work..? class A extends Thread { public...=" + i); } public static void main(string args[]) { A a = new A(); Thread t = new thread(a); t.start(); } } Is it possible to run above program with out
Thread
Thread  Write a Java program to create three theads. Each thread should produce the sum of 1 to 10, 11 to 20 and 21to 30 respectively. Main thread....   Java Thread Example class ThreadExample{ static int
Thread
Thread   there are two threads running at a time.. when am updating a values in database. both thread halt and stop for moment till it get updated into database... so i dnt want thread to get halts for tht moment of period. whats
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 Priorities
scheduling ? If the new thread is a higher priority thread then current running....   Time-Sliced (Round-Robin) Scheduling ? A running thread... Thread Priorities     
Thread Priorities
Thread Priorities         In Java, thread scheduler can use the thread priorities in the form of integer value to each of its thread to determine the execution
Thread in java
Thread in java  which method will defined in thread class
Thread Priorities
Thread Priorities         In Java, thread scheduler can use the thread priorities in the form of integer value to each of its thread to determine
Thread restart
Thread restart  hello,, can dead thread restart?   hii, A dead Thread can't restart not even by calling start() again on that object
java Thread
java Thread  what is purpose of Thread
Daemon thread
Daemon thread  what is need of daemon thread
Daemon thread
Daemon thread  what is need of daemon thread
Java thread
Java thread  How can a dead thread be restarted?  A dead thread cannot be restarted
Java thread
Java thread  What are the high-level thread states
Java thread
Java thread  What are the ways in which you can instantiate a thread
Advertisements
 

 

 

DMCA.com