Multi-threading & Semaphores in signals  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
tradetree
Posts: 81
Joined: 29 Apr 2013
Location: www.threefoldmarkets.com
Has thanked: 12 times
Been thanked: 16 times
Contact:

Multi-threading & Semaphores in signals

Postby tradetree » 07 Jan 2014

For the sake of software piracy protection, I have a single resource that must be accessed by multiple signals that in the MC environment could be different threads. The way a shared resource is protected in C# is by the use of semaphores. The question I have is if anyone has used semaphores in MC signals or if MC has any documents that might explain their use? I understand this is an expert programming question that goes beyond normal tech support. I am just asking for any pointers there may be on the subject, or other users with such experience?

To be clearer, I am not looking for generic software info on semaphores in C#, which can be found on the net, but anything to watch for in MC with regard to them. For example, usually you create the semaphore and then create threads that use a common semaphore. Being that we are not creating the threads, we don't have that level of visibility. So is it even possible to use semaphores?

Dru
Posts: 107
Joined: 28 Aug 2007
Has thanked: 4 times
Been thanked: 171 times

Re: Multi-threading & Semaphores in signals  [SOLVED]

Postby Dru » 08 Jan 2014

A critical section will be enough

tradetree
Posts: 81
Joined: 29 Apr 2013
Location: www.threefoldmarkets.com
Has thanked: 12 times
Been thanked: 16 times
Contact:

Re: Multi-threading & Semaphores in signals

Postby tradetree » 08 Jan 2014

A critical section will be enough
Perfect! Thanks.


Return to “MultiCharts .NET”