code update doubt

Enric Jaen <>
Mon Nov 4 11:28:14 CET 2002


Very kind for your answers. 

I forgot to make a question regarding code upgrade:

* After the resume, processes keep running the old
version until they do a global function call. But
before this, their state may have been updated. For
example:


-module(test).

loop(state)
... old version of test
 <--- process suspended
 <--- load new version of test
 <--- change state 
 <--- process resumed
... process keep executing old version of test..
... do something with NEW state .. (1)

test:loop(state)  <-- use new version of test.


(1) The old code version is using the new state
version. Doesn't this cause an inconsistency?

Cheers.
 -Enric



_______________________________________________________________
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es



More information about the erlang-questions mailing list