synchronisation and locks - given 2 threads...print out 1 to 10 such that 1 thread shud print all odd nos and other should print even nos
AnswerBot
1y
The question is about synchronizing two threads to print odd and even numbers from 1 to 10.
Use synchronization mechanisms like locks or semaphores to ensure only one thread prints at a time
Create two ...read more
Help your peers!
Add answer anonymously...
Top Marvel Realtors Software Engineer interview questions & answers
Popular interview questions of Software Engineer
Top HR questions asked in Marvel Realtors Software Engineer
>
Marvel Realtors Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app