Re: threading - race condition?



En Sun, 11 May 2008 13:16:25 -0300, skunkwerk <skunkwerk@xxxxxxxxx> escribió:

the only issue i have now is that it takes a long time for 100 threads
to initialize that connection (>5 minutes) - and as i'm doing this on
a webserver any time i update the code i have to restart all those
threads, which i'm doing right now in a for loop. is there any way I
can keep the thread stuff separate from the rest of the code for this
file, yet allow access?

Like using a separate thread to create the other 100?

--
Gabriel Genellina

.



Relevant Pages

  • Re: threading - race condition?
    ... to initialize that connection - and as i'm doing this on ... a webserver any time i update the code i have to restart all those ... Like using a separate thread to create the other 100? ...
    (comp.lang.python)
  • RE: reusing TcpClient object
    ... try to create a separate thread for connection which is using a ... > client and I need to send one message per event. ... > the listening application whenever I need to send something. ... the connection process blocks the thread for a ...
    (microsoft.public.dotnet.framework)
  • Re: a problem with Socket
    ... now the problem with the connection is solved: when the server was ... listening and I closed the connection, I didn't call ServerSocket.close, ... I would like not to use a separate thread ...
    (comp.lang.java.programmer)
  • SqlCeConnection closed after calling Open()
    ... Lately I've gotten a strange error: The state of a connection remains closed after calling Open ... If conn Is Nothing Then ... 'Connection state is closed without throwing an exception. ... This is running in a separate thread, but I'm using SyncLock to make sure that only one thread writes to the database. ...
    (microsoft.public.dotnet.framework.compactframework)