in reply to Re: Using Coro with Telnet
in thread Using Coro with Telnet
Hi, I'm glad you've asked.
There are a few drawbacks to threads. First, I have to limit number of threads as they are consuming considerable amounts of memory. Second, IO handles can't be shared between threads, so once my thread worker connect to remote address I have to use this particular worker for all future communication, which doesn't go well along with worker pattern. http://www.perlmonks.org/?node_id=967149
Since workers are IO bound, I thought they could benefit from cooperative environment (everything is shared/no need for variable locking/use less memory).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using Coro with Telnet
by BrowserUk (Patriarch) on Mar 29, 2014 at 19:39 UTC | |
by mpapec (Novice) on Mar 30, 2014 at 07:47 UTC | |
by BrowserUk (Patriarch) on Mar 30, 2014 at 11:15 UTC |