Results 1 to 2 of 2

Thread: About Threads

  1. #1
    Contributing Member
    Join Date
    Jul 2006
    Answers
    63

    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.


  2. #2
    Expert Member
    Join Date
    Oct 2005
    Answers
    383

    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

    :)
    NEVER SAY DIE.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact