🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Server that listens to a port

#7789
From: Calvin R. Smith
Date: Mon, 14 May 2001 15:25
44 lines
2230 bytes
not sure what u mean.  There can only be one thread waiting for a connection
on a given port.

Calvin

"ArShAm" <ArShAm@abshar.net> wrote in message news:3afd9719_2@dnews...
> 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: <3afff93c_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!news.tele.dk!194.213.69.151!news.algonet.se!algonet!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews
References: <3afac731_2@dnews> <3afadec3$1_2@dnews> <3afaec55_2@dnews> <3afaf2d9$1_2@dnews> <3afb59d3_2@dnews> <3afbff0b_2@dnews> <3afd9719_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-14 08:34:06 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> <3afbff0b_2@dnews> <3afd9719_2@dnews>
Subject: Re: Server that listens to a port
Date: Mon, 14 May 2001 09:25:03 -0600
Lines: 46
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: <3afff93c_2@dnews>
X-Trace: dnews 989854012 207.201.104.90 (14 May 2001 08:26:52 -0700)
Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!news.tele.dk!194.213.69.151!news.algonet.se!algonet!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews