|
Bas de page | |
---|---|
Auteur | Sujet : urllib2 et threading |
![]() Publicité | Posté le 18-03-2009 à 20:12:07 ![]() ![]() |
masklinn í dag viðrar vel til loftárása | Une queue (Queue.Queue) avec les URLs pour l'entrée, une queue pour les sorties. --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
pouchat | j'ai utilisé le module multiprocessing apparement plus performant pour ce que j'ai à faire. J'ai modifié la fonction queue() :
|
pouchat | tu aurais des exemple assez clair avec queue.queue. C'est encore ce que je reproche à python, une bonne doc mais qui manque d'exemples clairs et fonctionnels.
|
Taz bisounours-codeur | Mouais, Process c'est peut-être un peur lourd par rapport à threading pour un truc IO-bound |
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 20-03-2009 à 21:51:14 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Taz bisounours-codeur | Lis la doc du module multiprocessing, t'as tout d'expliquer sur comment échanger des données.
|
pouchat | le module threading pas d'exemple même si les descriptions des méthodes sont claires. Pour le multithreading, les 10 premiers bout de codes ne font tourner qu'un seul process à la fois. Je pige pas l'intêret alors que ce module est justement fait pour plusieurs process en même temps. Les exemples suivants font intervenir le manager et la je laisse tomber.
Message cité 1 fois Message édité par pouchat le 20-03-2009 à 23:03:56 |
masklinn í dag viðrar vel til loftárása |
Message cité 1 fois Message édité par masklinn le 20-03-2009 à 23:23:00 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
pouchat |
|
Sujets relatifs | |
---|---|
Threading et exception? | [Python] Requete HTTP sans proxy avec urllib2 |
Tkinter et threading | problème de connexion HTTP J2ME avec Threading |
SWT et Mult-Threading | [MinGW/Boost.Thread] Segfault multi-threading |
[C++/SDL] pb de threading | [C++] Threading --> PB de creation de thread (MFC) |
[MS-DOS] Multi-threading | multi-threading en Visual C++ |
Plus de sujets relatifs à : urllib2 et threading |