On Oct 4, 2006, at 7:04 PM, Richard Gaskin wrote:
What sorts of tasks would threading be essential for?
Making servers!!!!
We need threads or fork(). Thats the only way to serve thousands of
concurrent connections. You create a simple server that can serve
just one request. You pick every request create a new thread/fork and
run that server with that request, even if it is a expensive request
that will take long to work, it will not interrupt or harm the other
request because each one is running on its own space.
You can't really work with queues and task lists when building a web
server... I did that, but if something blocks, then the whole server
blocks...
Andre
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution