Arc Forumnew | comments | leaders | submitlogin
2 points by fallintothis 5968 days ago | link | parent

"It has threads and a way to say a chunk of code should be executed atomically. No more than that at the moment. Nor is there any explicit notion of a processor. I'm not sure how that will turn out."

http://news.ycombinator.com/item?id=32801



1 point by almkglor 5966 days ago | link

Re: "chunk of code should be executed atomically" - I'm not 100% sure but I think it's possible that (from the way 'atom is implemented) a sequence that is not protected within an 'atom scope will be able to see an "atomic" operation in progress.

Basically 'atom just acquires a Global Interpreter Lock around the function it executes. I'm not sure, but from the semantics of locking, I think that another thread may see the "atomic" operation step-by-step unless it is itself protected by 'atom (and then there is potential contention for a single global lock!)

Of course, mzscheme uses green threads, so maybe it won't work that way.

-----

1 point by prakash 5968 days ago | link

I'm not sure how that will turn out."

That's the part I want to know more about. Thanks for the link.

-----