[Tutor] Shared FIFO?

spir denis.spir at free.fr
Mon May 18 11:40:53 CEST 2009


Le Mon, 18 May 2009 08:19:21 +0100,
"Alan Gauld" <alan.gauld at btinternet.com> s'exprima ainsi:

> If 
> you never, or rarely, have concurrent accesses then using 
> a text file might work. 

That's what I would do. New tasks appended --> oldest one = first one (first line, probably).
For access sharing, then you can have a very basic

def accessDataFile(thingToDo):
   while True:
      try:
         thingToDo
         break
      Except ...:
         wait(a_bit)

Denis
------
la vita e estrany


More information about the Tutor mailing list