From owner-freebsd-java Sun Feb 1 21:20:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA05032 for java-outgoing; Sun, 1 Feb 1998 21:20:43 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from inet-user-gw-1.us.oracle.com (inet-user-gw-1.us.oracle.com [192.86.155.82]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA05025 for ; Sun, 1 Feb 1998 21:20:39 -0800 (PST) (envelope-from SSANKARA.IN.oracle.com.ofcmail@in.oracle.com) Received: from dwarpal.in.oracle.com (dwarpal.in.oracle.com [152.69.176.11]) by inet-user-gw-1.us.oracle.com (8.8.5/8.8.5) with SMTP id VAA28020 for ; Sun, 1 Feb 1998 21:18:11 -0800 (PST) Received: by dwarpal.in.oracle.com (8.6.13/37.8) id AAA08800; Mon, 2 Feb 1998 00:52:32 -0500 Message-Id: <199802020552.AAA08800@dwarpal.in.oracle.com> Date: 02 Feb 98 08:35:53 +0330 From: "SIVA SANKARAN" To: freebsd-java@FreeBSD.ORG Subject: TimeSlicing in JVM X-Orcl-Application: Disclaimer What ever I send is my opinion and don't neccessarily represent that of ORACLE Corporation MIME-Version: 1.0 X-Mailer: Oracle InterOffice (version 4.0.5.1.55) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe java" 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.