Difference between MethodImpl and Monitor? [Resolved]

Posted by Selvarajan under C# on 8/8/2011 | Points: 10 | Views : 1364 | Status : [Member] | Replies : 2
Difference between MethodImpl and Monitor?

Regards,
Selva Rajan



Responses

Posted by: Hmanjarawala on: 8/9/2011 [Member] Bronze | Points: 50

Up
0
Down

Resolved
Hi Rajan,

As per my knowledge i try to give you answer.:

MethodImpl is used to synchronized method where method is shared among threads., MethodImpl is attribute class,

Where as Monitor works at thread level, it synchronized resources for thread.

in sort Monitor class has methods line Enter(), Exit which internally uses MethodImpl attribute class.

Hope this answer will help you.

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Selvarajan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Selvarajan on: 8/9/2011 [Member] Starter | Points: 25

Up
0
Down
Thanks for your reply,


Regards,
Selva Rajan

Selvarajan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response