compiling locks/ monitors

Arnab De <>
Wed, 11 Nov 2009 06:08:47 -0800 (PST)

          From comp.compilers

Related articles
compiling locks/ monitors (Arnab De) (2009-11-11)
Re: compiling locks/ monitors (Felipe Angriman) (2009-11-13)
Re: compiling locks/ monitors (Ian Rogers) (2009-11-13)
Re: compiling locks/ monitors (Andrew Tomazos) (2009-11-21)
| List of all articles for this month |

From: Arnab De <>
Newsgroups: comp.compilers
Date: Wed, 11 Nov 2009 06:08:47 -0800 (PST)
Organization: Compilers Central
Keywords: parallel, code, question
Posted-Date: 13 Nov 2009 00:49:13 EST

Many modern high level languages like Java/ C# have locks/ monitors as
language level features. Hardwares typically have lower level
synchronization primitives like CAS. One can implement a spinlock
using CAS, but it is bad for performance as it busy-waits for the lock
to be released. Can anyone tell me how these locks/monitors are
typically and efficiently compiled? Can you cite any paper on this?

Thanks in advance,

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.