Click here to Skip to main content
15,919,341 members
Home / Discussions / C#
   

C#

 
AnswerRe: MSMQ Pin
PIEBALDconsult18-Aug-11 18:28
mvePIEBALDconsult18-Aug-11 18:28 
GeneralRe: MSMQ Pin
Mycroft Holmes18-Aug-11 20:25
professionalMycroft Holmes18-Aug-11 20:25 
GeneralRe: MSMQ Pin
PIEBALDconsult19-Aug-11 2:59
mvePIEBALDconsult19-Aug-11 2:59 
GeneralRe: MSMQ Pin
Mycroft Holmes19-Aug-11 3:08
professionalMycroft Holmes19-Aug-11 3:08 
GeneralRe: MSMQ Pin
PIEBALDconsult19-Aug-11 15:18
mvePIEBALDconsult19-Aug-11 15:18 
AnswerRe: MSMQ Pin
RobCroll19-Aug-11 6:49
RobCroll19-Aug-11 6:49 
GeneralRe: MSMQ Pin
CodingYoshi19-Aug-11 11:52
CodingYoshi19-Aug-11 11:52 
GeneralRe: MSMQ Pin
RobCroll19-Aug-11 13:20
RobCroll19-Aug-11 13:20 
GeneralRe: MSMQ Pin
PIEBALDconsult19-Aug-11 15:33
mvePIEBALDconsult19-Aug-11 15:33 
GeneralRe: MSMQ Pin
RobCroll19-Aug-11 17:15
RobCroll19-Aug-11 17:15 
QuestionUse a static method / class? Pin
gmhanna18-Aug-11 8:29
gmhanna18-Aug-11 8:29 
AnswerRe: Use a static method / class? Pin
V.18-Aug-11 21:11
professionalV.18-Aug-11 21:11 
AnswerRe: Use a static method / class? Pin
Shameel18-Aug-11 22:49
professionalShameel18-Aug-11 22:49 
AnswerRe: Use a static method / class? Pin
BobJanova18-Aug-11 23:08
BobJanova18-Aug-11 23:08 
Questionplz brack my licence Pin
saqibali211918-Aug-11 8:11
saqibali211918-Aug-11 8:11 
AnswerCross-post Pin
Wendelius18-Aug-11 8:13
mentorWendelius18-Aug-11 8:13 
GeneralRe: Cross-post Pin
fjdiewornncalwe18-Aug-11 8:17
professionalfjdiewornncalwe18-Aug-11 8:17 
GeneralRe: Cross-post Pin
Wendelius18-Aug-11 8:20
mentorWendelius18-Aug-11 8:20 
AnswerRe: plz brack my licence Pin
#realJSOP18-Aug-11 8:19
professional#realJSOP18-Aug-11 8:19 
QuestionDatagridview.rowvalidating event question Pin
Davey_guan18-Aug-11 4:54
Davey_guan18-Aug-11 4:54 
AnswerRe: Datagridview.rowvalidating event question Pin
BobJanova18-Aug-11 5:23
BobJanova18-Aug-11 5:23 
AnswerRe: Datagridview.rowvalidating event question Pin
Alan N18-Aug-11 5:32
Alan N18-Aug-11 5:32 
GeneralRe: Datagridview.rowvalidating event question Pin
Davey_guan18-Aug-11 18:09
Davey_guan18-Aug-11 18:09 
QuestionInter-Process Signalling with "unlimited" processes? Pin
Don Rolando18-Aug-11 4:44
Don Rolando18-Aug-11 4:44 
Hi everyone,

I have "unlimited" processes (let's say 5 to 20 is a realistic number)

What I need is the following:
From time to time one of the processes has to signal the others that they have something to do.

There is no master, so I won't create some server which passes arround events for all interested processes.

There is also no message/content, so I would favor some low-level signalling. But without a master process IPC is not very handy at all.

WaitEventHandle seemed to be a good choice; even though it also works on process-level, it does not always work properly.
Every listening process has a thread whichs calls WaitOne(); when the event is sent it starts some action, calls Reset() and loops back to WaitOne().
The process which wants to indicate something creates a WaitEventHandle with the same name and calls Set().

In a simple hello world application this worked pretty well; but in some other application exactly the same approach never passes the second WaitOne(). Just as if noone would call Set anymore (but the other process still does!)


Is there any other useful low-level signalling? I am also not happy about the background thread with the do-while around the WaitOne().
Why are there no monitors or counters that simply fire an event when some equally named object in a different process/thread raises an event. :p



Cheerio,
Roland
AnswerRe: Inter-Process Signalling with "unlimited" processes? Pin
BobJanova18-Aug-11 5:30
BobJanova18-Aug-11 5:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.