flat assembler
Message board for the users of flat assembler.

Index > Windows > communication between threads

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 9184
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
yo yo there,
wanna know, how many possible "method" to communicate between primary thread to child threads, child thread to child thread and child thread to primary thread.

P thread to C thread
-----------------------

C thread to C thread
-----------------------

C thread to P thread
-----------------------
SendMessage
PostMessage

ps: would update based on reply
Post 30 Apr 2007, 00:08
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
PostThreadMessage and any of the unnamed synchronization objects
Post 30 Apr 2007, 01:20
View user's profile Send private message Reply with quote
r22



Joined: 27 Dec 2004
Posts: 805
r22
Post 30 Apr 2007, 02:34
View user's profile Send private message AIM Address Yahoo Messenger Reply with quote
okasvi



Joined: 18 Aug 2005
Posts: 382
Location: Finland
okasvi
Post 30 Apr 2007, 12:46
View user's profile Send private message MSN Messenger Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
Or just writing to memory areas, using LOCK prefix and things like cmpxchg, xadd, ... http://www.codeproject.com/useritems/FastReadWriteLock.asp . Depends on what you need to do.

PS: threads are threads, there aren't any such things as "parent" and "child" threads - that is process terminology.
Post 02 May 2007, 22:58
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.