| |||||
| Auteur | Sujet : [blabla@olympe] Le topic du modo, dieu de la fibre et du monde |
|---|---|
Elmoricq |
Publicité | Posté le 10-07-2010 à 00:49:23 ![]() ![]() |
___alt |
--------------- TRIPS RIGHT BUNCH F SHUTTLE TOM AND JERRY RIGHT YELLOW |
Jubijub Parce que je le VD bien |
el muchacho Comfortably Numb | Je viens de prendre une douche, peux plus dormir --------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
el muchacho Comfortably Numb |
--------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
el muchacho Comfortably Numb | Dites, avec FF 3.6.6, j'ai pour la première fois depuis longtemps à nouveau droit à des pubs en popup. Ca ne m'était pas arrivé depuis au moins FF 1.0, et ça fait chier.
--------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
skeye | preums au taf. --------------- Can't buy what I want because it's free - |
seabee |
|
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 10-07-2010 à 09:21:10 --------------- 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? |
el muchacho Comfortably Numb |
Message cité 1 fois Message édité par el muchacho le 10-07-2010 à 09:31:31 --------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
Publicité | Posté le 10-07-2010 à 09:25:53 ![]() ![]() |
el muchacho Comfortably Numb | Bon, j'ai un soucis d'implémentation d'un pattern producteur-consommateurs en Java, avec les producteurs basés sur une requête SQL. Je m'explique. J'ai un thread producteur qui fait régulièrement une requête en base et retourne une liste d'objets, des id par exemple. La table contenant ces id est nourrie en temps réel par un processus externe. Derrière, j'ai N threads consommateurs à qui le producteur passe ces id au travers d'une file d'attente synchronisée par exemple. Ces threads effectuent un traitement sur les données correspondant à ces id, puis une fois le traitement terminé, mettent un flag à jour "done" indiquant que l'id a été traité. Ainsi, la requête suivante du producteur évite de lire les id déjà traités. Par contre, mettons que le traitement d'un id par un consommateur prenne de 0,1 sec à 1h, si le producteur n'est pas au courant qu'un id est en traitement, il va le relire et le réinsérer dans la file.On pourrait faire en sorte que les consommateurs écrivent un état intermédiaire "in treatment" en base dès qu'ils chopent un id de la queue. Comment résoudriez-vous le problème de façon la plus élégante possible ? Pour l'instant, je pense à empêcher tout doublon des id dans la file d'attente, qui serait alors un synchronizedSet qu'il faut que je rende bloquant. Message cité 2 fois Message édité par el muchacho le 10-07-2010 à 10:51:31 --------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
koskoz They see me trollin they hatin |
--------------- |
masklinn í dag viðrar vel til loftárása |
--------------- 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? |
el muchacho Comfortably Numb |
Message cité 1 fois Message édité par el muchacho le 10-07-2010 à 11:03:39 --------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
skeye | 'tain mais les scripts sqlplus de la chef sans aucun commentaires et blindés de nombres magiques à modifier, pitié. --------------- Can't buy what I want because it's free - |
el muchacho Comfortably Numb | Hmmm, que se passe-t'il si la requête du producteur se fait en même temps qu'un consommateur écrit "en traitement" ? On est dans le cas pourri où le consommateur a retiré l'id de la file d'attente, donc il n'y a plus de doublon possible et pendant quelques dizaines de microsecondes, il n'a pas encore ouvert une transaction pour mettre à jour la base "en traitement". La requête va-t'elle à nouveau sortir l'id ? Ouais, ça chie. Message édité par el muchacho le 10-07-2010 à 11:21:07 --------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
masklinn í dag viðrar vel til loftárása |
--------------- 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? |
Harkonnen Un modo pour les bannir tous | IL ÉTAIT UNE BERGEREUUUUU !!!!!
--------------- J'ai un string dans l'array (Paris Hilton) |
el muchacho Comfortably Numb |
--------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
masklinn í dag viðrar vel til loftárása |
--------------- 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? |
el muchacho Comfortably Numb |
--------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
Elmoricq |
|
beel1 |
|
beel1 |
|
FlorentG |
|
uriel blood pt.2 |
--------------- IVG en france |
uriel blood pt.2 |
uriel blood pt.2 |
___alt | nananananananananananananana Batmaaaan --------------- TRIPS RIGHT BUNCH F SHUTTLE TOM AND JERRY RIGHT YELLOW |
masklinn í dag viðrar vel til loftárása |
--------------- 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? |
sligor |
Harkonnen Un modo pour les bannir tous | http://www.courrierinternational.c [...] -captivite
--------------- J'ai un string dans l'array (Paris Hilton) |
sligor | puis 6.5M$, merde, ça doit représenter 1000 ans du revenu moyen en Colombie... --------------- qwerty-fr |
FlorentG |
FlorentG | Ta regexp est fausse |
el muchacho Comfortably Numb |
--------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
uriel blood pt.2 |
--------------- IVG en france |
Publicité | Posté le ![]() ![]() |

| Sujets relatifs | |
|---|---|
| Plus de sujets relatifs à : [blabla@olympe] Le topic du modo, dieu de la fibre et du monde |




