Skip site navigation (1)Skip section navigation (2)
Date:      02 Feb 98 08:35:53 +0330
From:      "SIVA SANKARAN" <SSANKARA.IN.oracle.com.ofcmail@in.oracle.com>
To:        freebsd-java@FreeBSD.ORG
Subject:   TimeSlicing in  JVM
Message-ID:  <199802020552.AAA08800@dwarpal.in.oracle.com>

next in thread | raw e-mail | index | archive | help
	Hi all, 
 
	In the standard JDK code, for Solaris Green-threads the 'Timeslicing' 
(i.e if more  than one thread, runs at the same priority using Round-Robin 
method of scheduling) is disabled.  Therefore other threads, waiting in the 
Runnable Queue of the same priority of the currently running thread has to 
wait, till the running thread finishes or yields.  
 
	The code is in 
src/freebsd/java/green_threads/src/clock.c . The function is timeSlicer. But 
the variable 
TimeSlice is initialized to 0 (=> no TimeSlice ) 
 
	Is this the desired behavior. Can I make Round-Robin fashion of 
scheduling for 
equal priority threads.  If so can you suggest some reasonable value for the 
TimeSlice. 
Is there any other issue involved, in enabling the TimeSlice. 
 
Regards 
Shankar. 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802020552.AAA08800>