-
Contributing Member
About Threads
I need to know what are the important steps one should take care while using more than one threads? If some points could be given in this discussion it would be helpful.
-
Expert Member
Re: About Threads
hi friend
if u are using a variable which can be modified simultaneously by other threads ,then better use VOLATILE keyword in front of such variable.
This warns compiler to fetch them fresh each time.
Also when two threads needs to access a shared resource ,then there should b some way to ensure that the resource will b used by only one thread at a time.(use synchronisation keyword).
I hop this will solve ur query up to some extent.
Bye 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules