Re: Thread info

From: Matt Humphrey (matth_at_ivizNOSPAM.com)
Date: 02/03/05


Date: Thu, 3 Feb 2005 15:17:03 -0500


"nialltimpson" <niall_mulhare@hotmail.com> wrote in message
news:1bd72a439baf98b8be2fe489875b08ab@localhost.talkaboutprogramming.com...
> I was wondering is to possible to differenciate between threads, like can
I
> access an thread which is allready in execution. What I have is an applet
> which is connected to my server which in turn creates an thread for that
> client, now when I close the applet and open another one it creates the
> thread, but I want to do is instead of creating another one is let it join
> back in with the old thread. Im sorry for the vague description. If you
> understand I would be greatfull.

It really depends on what you mean by joining back in with the old one. It
is common practice for a server to have a thread pool. When a client
connects, a thread is selected from the pool to service that client. When
the client disconnects, the thread is returned to the pool. Once the thread
is returned to the pool it is back in its idle state and it's not really
doing anything aside from waiting for the next request. In this way you
can pre-populate the pool with some threads and there is likely to be one
ready when a client connects; there are other benefits.

Is there a reason you need a continuous connection and that a request-based
connection (HTTP) using existing J2EE server technology would not be
appropriate? These tools tend to already have such facilities built in.

Cheers,
Matt Humphrey matth@ivizNOSPAM.com http://www.iviz.com/



Relevant Pages

  • Re: .Net Scalability problem
    ... LoadRunner will peak out a server with a few virtual users. ... To get an idea of load, ... Fire off the test client and watch the number of ... > So I think that the MTC generate concurrent connection and per ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Connection lost at same time every hour (sometimes)
    ... After making the two following alterations on the server the problem seems ... After analyze your ipconfig on SBS and client, ... Then, other connection is good, ...
    (microsoft.public.windows.server.sbs)
  • Re: server disconnection - very often
    ... Reason of permanent popups is VMware server aplication on clients. ... Run CEICW to configure the network of SBS: ... Two network adapters - manual router connection to broadband ... Uninstall VMware on client. ...
    (microsoft.public.windows.server.sbs)
  • Re: Lan setup 2 nic
    ... The external nic only has TCP/IP enabled. ... Ipconfig of the server is looking good, but the client is still missing the ... > connection so we have a 2 nic with router setup now. ...
    (microsoft.public.windows.server.sbs)
  • Re: Regular disconnections from remote web workplace
    ... I can connect to office server and all office clients from home at all times ... be physically working right up until the connection is lost. ... If I enter http://companyip from a client I receive the login screen for the ... Click Services tab and select Hide All Microsoft Services and Disable ...
    (microsoft.public.windows.server.sbs)