Article View: borland.public.jbuilder.java.language
Article #19292How to do nothing efficently
From: Simon Waters
Date: Wed, 18 Feb 1998 00:00
Date: Wed, 18 Feb 1998 00:00
14 lines
1010 bytes
1010 bytes
Excuse a basic Java question, but how does a thread do nothing for a given time efficiently. All the example pause routines I've seen loop until the system clock has exceeded a certain value. I doubt this is very efficient. Is there something I am missing ? Appreciate some OS'es probably do not have good mechanisms for doing this, but surely there should be a standard API call so that the OSes that do can take advantage of it..... Any good pointers thread handling in JAVA appreciated as well.
Technical Details
Message-ID:
<887795101.24328.0.nnrp-09.c1ed6dcb@news.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,fe1aa7da98d36a16,start X-Google-Attributes: gidf74b3,public From: "Simon Waters" <Simon@wretched.demon.co.uk> Subject: How to do nothing efficently Date: 1998/02/18 Message-ID: <887795101.24328.0.nnrp-09.c1ed6dcb@news.demon.co.uk> X-Deja-AN: 326167353 X-NNTP-Posting-Host: wretched.demon.co.uk [193.237.109.203] X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Newsgroups: borland.public.jbuilder.java.language