Re: Available memory and limit on thread creation
From: Roedy Green (look-on_at_mindprod.com.invalid)
Date: 07/02/04
- Next message: Joseph Dionne: "Re: Available memory and limit on thread creation"
- Previous message: Joseph Dionne: "Re: Available memory and limit on thread creation"
- In reply to: Joseph Dionne: "Re: Available memory and limit on thread creation"
- Next in thread: Joseph Dionne: "Re: Available memory and limit on thread creation"
- Reply: Joseph Dionne: "Re: Available memory and limit on thread creation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 02 Jul 2004 21:40:47 GMT
On Fri, 02 Jul 2004 21:13:34 GMT, Joseph Dionne <jdionne@hotmail.com>
wrote or quoted :
>
>One reason to block on system call is to eliminate the polling time that
>will be required to see if the external application has completed, and
>eliminates the need to maintain a socket to external application result
>list.
Think in terms of how an HTTP server works. Requests come in on
various sockets, but usually a request is a stateless GET. There is no
need to remember the state of what that socket was doing previously.
There does not need to be a thread waiting for that socket. As soon
as the i/o completes, the packet can be put into a queue and serviced
by a pool of threads.
There is no polling involved. The hardware gives you an interrupt
when the i/o completes. The queue of packets to be processed can be
empty, but even then that can be handled with a synchronization lock,
no polling required.
There are so many things you could potentially do with sockets. We
don't yet know what he is up to, so all we can do is toss out
possibilities.
-- Canadian Mind Products, Roedy Green. Coaching, problem solving, economical contract programming. See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
- Next message: Joseph Dionne: "Re: Available memory and limit on thread creation"
- Previous message: Joseph Dionne: "Re: Available memory and limit on thread creation"
- In reply to: Joseph Dionne: "Re: Available memory and limit on thread creation"
- Next in thread: Joseph Dionne: "Re: Available memory and limit on thread creation"
- Reply: Joseph Dionne: "Re: Available memory and limit on thread creation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|