救命啊!在线等!!
1. list as many as possible the thread and process synchronization primitives you know of on UNIX and Windows. Briefly explain what they are and what situations they are most suited for??
2. how do you use object reference count to manage object’s lifetime in a multi-thread application??
3. what's the difference between passing parameters by value and passing parameters by reference? write a function that allocates a new chunk of memory and returns the allocated memory to the caller VIA A PARAMETER??
4 4. assume x is an STL iterator. Explain why generally postfix form of increment operation on x, ie., x++, is less efficient than the prefix form of the operation, i.e., ++x??