Article View: borland.public.jbuilder.java.language
Article #7843Re: Threads
From: Nabin Thomas
Date: Thu, 17 May 2001 18:14
Date: Thu, 17 May 2001 18:14
58 lines
2977 bytes
2977 bytes
This is a multi-part message in MIME format. --------------69743DA277072E9C9EB49A4F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit John is right. Thread does not have a non static method sleep() So it always pauses the current thread for the time "John McGrath [TeamB]" wrote: > On 11 May 2001 15:25:54 +0200, Tor Iver Wilhelmsen wrote: > > > The static method calls the current thread's sleep(); > > this may be a different thread than t. > > I think they will both cause the current thread to sleep. They both > call the static Thread.sleep() method, and that affects the current > thread. > > Java allows you to prefix a call to a static method with either the > class name or an reference of the class type. But in both cases, it > calls the static method, and that method has no way of knowing which > way the call was specified. > > I think it is pretty strange that it allows this, but I have heard some > that like this aspect of the Java language. I think it causes more > confusion than it is worth. > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html --------------69743DA277072E9C9EB49A4F Content-Type: text/x-vcard; charset=us-ascii; name="viewmycard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Nabin Thomas Content-Disposition: attachment; filename="viewmycard.vcf" begin:vcard n:Thomas;Nabin x-mozilla-html:TRUE adr:;;;;;; version:2.1 email;internet:DONOTSPAMME.nabinthomas@REMOVETHIShotmail.comANDTHISTOO note;quoted-printable:REMOVE the Capitalised letters in my email ID given in this card=0D=0A=0D=0AFeel free to contact me thru e-mail or MSN Mssenger =0D=0A if required but DONOT SPAM=0D=0A=0D=0A fn:Nabin Thomas end:vcard --------------69743DA277072E9C9EB49A4F--
Technical Details
Message-ID:
<3B04151A.F46E99CA@foremail.nospamplease>Path:
arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!sunqbc.risq.qc.ca!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3afbe0e4_1@dnews> <u3dacaufx.fsf@sds.no> <MPG.1566d634c908421f98a1cf@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,8c03226f2bf37eeb X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-17 22:42:03 PST Message-ID: <3B04151A.F46E99CA@foremail.nospamplease> Date: Thu, 17 May 2001 23:44:51 +0530 From: Nabin Thomas <viewmycard@foremail.nospamplease> X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: Threads References: <3afbe0e4_1@dnews> <u3dacaufx.fsf@sds.no> <MPG.1566d634c908421f98a1cf@forums.borland.com> Content-Type: multipart/mixed; boundary="------------69743DA277072E9C9EB49A4F" NNTP-Posting-Host: 202.9.186.14 X-Trace: dnews 990163692 202.9.186.14 (17 May 2001 22:28:12 -0700) Lines: 61 Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!sunqbc.risq.qc.ca!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews