Article View: borland.public.jbuilder.java.language
Article #7893Re: Server that listens to a port
From: Calvin R. Smith
Date: Fri, 11 May 2001 15:00
Date: Fri, 11 May 2001 15:00
21 lines
1731 bytes
1731 bytes
If your thread is just simply waiting for an unknown period of time then you will end up calling yield a lot since it does not yield for long, and sleep is for waiting for a known period of time. Instead what u should use it wait / notify "ArShAm" <ArShAm_MeTaL@hotmail.com> wrote in message news:3afb59d3_2@dnews... > Calvin > > Thanks a lot for your great help , that made my sight wide in programming , > and again I thank you , you answered a lot of my questions in the last mail. > > Another question is , in that article , I should pause my thread with yeld > or sleep? which one is better? > > Thanks man and good luck > ArShAm > >
Technical Details
Message-ID:
<3afbff0b_2@dnews>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!feed2.onemain.com!feed1.onemain.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3afac731_2@dnews> <3afadec3$1_2@dnews> <3afaec55_2@dnews> <3afaf2d9$1_2@dnews> <3afb59d3_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,43e608b758a1dc81 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-11 08:12:03 PST From: "Calvin R. Smith" <calvinrsmith@hotmail.com> Newsgroups: borland.public.jbuilder.java.language References: <3afac731_2@dnews> <3afadec3$1_2@dnews> <3afaec55_2@dnews> <3afaf2d9$1_2@dnews> <3afb59d3_2@dnews> Subject: Re: Server that listens to a port Date: Fri, 11 May 2001 09:00:55 -0600 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 207.201.104.90 Message-ID: <3afbff0b_2@dnews> X-Trace: dnews 989593355 207.201.104.90 (11 May 2001 08:02:35 -0700) 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!feed2.onemain.com!feed1.onemain.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews