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: 12740
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 30 Apr 2007, 00:08
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: 4624
Location: Argentina
LocoDelAssembly 30 Apr 2007, 01:20
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 30 Apr 2007, 02:34
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 30 Apr 2007, 12:46
Post 30 Apr 2007, 12:46
View user's profile Send private message MSN Messenger Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 02 May 2007, 22:58
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.