🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14957

Re: Yield, sleep or wait

#14957
From: Hugo Ferreira
Date: Wed, 21 Jul 1999 00:00
16 lines
862 bytes
Tor,

>> My question is: what does yield do ?
>
>public static void yield()
>
>Causes the currently executing thread object to temporarily pause and
>allow other threads to execute.
>

I know, but : say I call yield within a synchronized block.
Will it release any monitors like wait, or not like the sleep ?

Thanx.

Hugo.
Technical Details
Message-ID: <7n4bkg$ji214@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7mve5r$fbg9@forums.borland.com> <u3dyjg5g3.fsf@sds.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,45bb88477a8645d
X-Google-Attributes: gidf74b3,public
From: "Hugo Ferreira" <HugoF@cocaina.inescn.pt>
Subject: Re: Yield, sleep or wait
Date: 1999/07/21
Message-ID: <7n4bkg$ji214@forums.borland.com>
X-Deja-AN: 503496802
References: <7mve5r$fbg9@forums.borland.com> <u3dyjg5g3.fsf@sds.no>
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700
Newsgroups: borland.public.jbuilder.java.language