程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> C語言 >> C++ >> C++入門知識 >> 跨線程send message

跨線程send message

編輯:C++入門知識

今天同事問了一個問題,說在線程中send message 和直接調用是不是一樣,他覺得是一樣的,但是線程跟蹤卻發現處理過程是在接收消息隊列完成。回家看到博客園上的一番爭論才有些明白,這裡貼出來,共勉

http://bbs.csdn.net/topics/390715501?page=1

If the specified window was created by the calling thread, the window procedure is called immediately as a subroutine. If the specified window was created by a different thread, the system switches to that thread and calls the appropriate window procedure. Messages sent between threads are processed only when the receiving thread executes message retrieval code. The sending thread is blocked until the receiving thread processes the message.

 

 

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved