Thread Sockets und Threads (6 answers)
Opened by weismat at 2006-10-23 13:26

weismat
 2006-11-14 10:14
#37372 #37372
User since
2003-08-18
142 Artikel
BenutzerIn
[default_avatar]
Laut folgendem Artikel sind Sockets thread-safe:
http://www.perl.com/pub/a/2002/06/11/threads.html
Quote
thread-safe
This module can safely be used from multiple threads. The effect of calling into a safe module is that the results are valid even when called by multiple threads. However, thread-safe modules can still have global consequences; for example, sending or reading data from a socket affects all threads that are working with that socket. The application has the responsibility to act sane with regards to threads. If one thread creates a file with the name file.tmp then another file which tries to create it will fail; this is not the fault of the module.

Ich habe mich trotzdem entschlossen, alles in einen eigenen Thread reinzunehmen - ging recht einfach und ist für mich einfach logischer.\n\n

<!--EDIT|weismat|1163492101-->

View full thread Sockets und Threads