Ness Interview Question
Developer Program EngineersCountry: India
Interview Type: In-Person
There are no APIs as such to my knowledge. But this can be achieved
1. With the example given by Nelson Perez
2. Write the timestamp and the thread name in logs.
3. You can make threads execute in sequence with priority assignments
4. You can also make threads execute in sequence, putting other threads in sleep.
Use a variable to be written by the first thread with some specific message in a thread safe way using a lock object.
- Nelson Perez March 07, 2015