in reply to Re^2: Is it possible to perform concurrent action like loop?
in thread Is it possible to perform concurrent action like loop?
Saying the loop runs things sequentially is true, but misleading... because in a single processor computer, all processes get run sequentially anyways.....the execution pointer can only be in one place at a time. So event-looping is just extending what the kernel does, on a per-process basis.
But yes, if your loops are resource hogs, it may be neccessary to fork or thread.
It's like using IO::Select....do you avoid "select" because it's usage usually loops over it's select array? No, you use it, but keep in mind it's limitations.
|
|---|