This is one of the questions we get when we interview Windows developers. It’s so weird. Some interviewers are so dumb that they ask mindless questions and sit on the opposite side. Because Windows development engineers especially like to ask MFC things, so if you want to apply for Windows client students note, you had better be able to solid things about MFC, after all, if in the client side, MFC although alias “no rice to eat”, but if you can not say not past.
The interviewer asked me about three ways to create threads, namely interfaces. In fact, I do not know how to create threads in MFC. I only answered _beginThread () and CreateThread(). Later I checked the information and found that there is also an AfxBeginThread(). The thread creation method in MFC can also wait and wake up a thread.
In fact, you will be familiar with this if you work on projects with a preference for high-concurrency threads. But Windows development of most of the number are biased to the interface UI client, will rarely involve some high and stylistic business, as a Windows developer, may require you to be familiar with multi-threading, multi-process, these communication methods synchronous asynchronous operation. A thread’s creation, wake and wait, thread state, end thread, etc., these general states, if you don’t work much, then it is best to forcibly memorize, this is good.
The interviewer also asked about creating threads with high concurrency, and I answered about thread pools. The interview face is the feeling and mood, if really can not answer to say, put yourself wide tansome.