The Linux general technology-Linux programming and kernel information that comes to mind for synchronization between threads or processes. The following is a detailed description. Although two threads are created in this function and pWriteW-> ResumeThread () is called twice, the first pWriteW-> ResumeThread () is not called () immediately execute the first thread, because the thread itself is also a thread, under the same priority, the operating system can schedule other threads only after the function of the Creation thread is executed, just like the mian function of the process created in linux, although multiple processes with the same priority are created
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.