Thread Multitasking mit Perl (7 answers)
Opened by blue-dev at 2008-03-22 17:50

blue-dev
 2008-03-23 20:40
#107408 #107408
User since
2008-03-22
4 Artikel
BenutzerIn
[default_avatar]
Also was mich sehr angesprochen hat war Möglichkeit 4).
Da habe ich allerdings noch eine Frage zu:
Auf der Website steht folgendes:

Quote
A task that calls sleep() or something else that doesn't return for a while will pause the entire program. This will change when Perl's threads become mainstream.

Calling die() or exit() in one task will stop every task, and indeed the entire program. This may not be the desired effect. It will change when POE gets exceptions.


Wenn ich jetzt eine Session erstelle die die ganze Zeit <STDIN> oder readline anfragen aufnimmt, ist es nicht fast das selbe wie sleep? Der Prozess gibt ja nichts zurück solange ich nicht Enter drücke.
Oder hab ich da jetzt was falsch verstanden?

View full thread Multitasking mit Perl