Article View: borland.public.jbuilder.java.language
Article #7908Re: Server that listens to a port
From: ArShAm
Date: Sat, 12 May 2001 17:24
Date: Sat, 12 May 2001 17:24
36 lines
1994 bytes
1994 bytes
Is it need to make the while/accept part of server threaded or not?
I mean for better handling of the other threads.
Thanks
ArShAm
"Calvin R. Smith" <calvinrsmith@hotmail.com> wrote in message
news:3afbff0b_2@dnews...
> 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:
<3afd9719_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.skycache.com!Cidera!news.maxwell.syr.edu!colt.net!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> <3afbff0b_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-12 13:10:03 PST Reply-To: "ArShAm" <ArShAm@abshar.net> From: "ArShAm" <ArShAm@abshar.net> Newsgroups: borland.public.jbuilder.java.language References: <3afac731_2@dnews> <3afadec3$1_2@dnews> <3afaec55_2@dnews> <3afaf2d9$1_2@dnews> <3afb59d3_2@dnews> <3afbff0b_2@dnews> Subject: Re: Server that listens to a port Date: Sat, 12 May 2001 21:54:19 +0430 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 NNTP-Posting-Host: 61.11.252.149 Message-ID: <3afd9719_2@dnews> X-Trace: dnews 989697817 61.11.252.149 (12 May 2001 13:03:37 -0700) Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.skycache.com!Cidera!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews