Interview Questions in Multithreading & IPC (C++)

Status
Not open for further replies.

mathrisk

.: deleted :.
Herald
I got a job interview on coming weekend.
Its basically C++, Unix, SQL stuffs. I have rarely worked on Multithreading and IPCs in C++.
I have read the tutorials and wrote few basic programs - but I was looking for some interview oriented questions in these two sections. (pThreads and Sockets - TCP, UDP)

Got few

What synchronization primitives do you know, tell difference between them.
What is a deadlock and what is a livelock.
What is a race condition.
What does the term 'lock-free' mean.
What is the best way to terminate a thread.
Why you shouldn't use TerminateThread-esque functions.
Condition Variables?

Could someone add more to the list.

TIA.

PS: answers aren't mandatory as they can be easily found (well, most of them :P)
 
Status
Not open for further replies.