Analyst Integration Question:
Download Job Interview Questions and Answers PDF
Explain about critical section?
Answer:
critical section is the part of a code, which is very important and in multi-threading must be exclusively modified by any thread. Semaphore or mutex is used to protect critical section. In Java you can use synchronized keyword or ReentrantLock to protect a critical section.
Download Integration Programmer Interview Questions And Answers
PDF
Previous Question | Next Question |
Can you please explain the difference between forking a process and spawning a thread? | Can you please explain the difference between value type and a reference type? |