Boolean access in multithreaded environment
ManojM
Date: 05/21/04
- Next message: Peter Foot [MVP]: "Re: Contacts, Appointments and Tasks Databases"
- Previous message: Yo: "Contacts, Appointments and Tasks Databases"
- Next in thread: Chris Tacke, eMVP: "Re: Boolean access in multithreaded environment"
- Reply: Chris Tacke, eMVP: "Re: Boolean access in multithreaded environment"
- Reply: Jon Skeet [C# MVP]: "Re: Boolean access in multithreaded environment"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 21 May 2004 16:36:08 +0530
Hi
I have one thread assigning true/false to boolean and another thread
accessing the value of the boolean. I need this operation to be thread safe.
Someone told me that boolean assignment is atomic operation and thats why I
need not make it volatile. Is it true that its atomic or should I make it
volatile/restrict its access by lock?
Thanks
Manoj
- Next message: Peter Foot [MVP]: "Re: Contacts, Appointments and Tasks Databases"
- Previous message: Yo: "Contacts, Appointments and Tasks Databases"
- Next in thread: Chris Tacke, eMVP: "Re: Boolean access in multithreaded environment"
- Reply: Chris Tacke, eMVP: "Re: Boolean access in multithreaded environment"
- Reply: Jon Skeet [C# MVP]: "Re: Boolean access in multithreaded environment"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|