I still have some problems to correctly understand the dosync  
semantic.  What happens exaclty if two threads try to modify the same  
list:

Example

thread 1:

(dosync
append an item to a list
.......
)

thread 2:

(dosync
remove an item from a list
..........
)

Is it true that If thread 1 is executed 'before' thread 2 all changes  
in thread 2 are rollbacked and the dosync in thread 2  is executed  
until the change can be succesfuly applied (in this example after the  
dosync of thread 1 is finished )?

Regards
   Roger


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to