Click here to Skip to main content
15,887,676 members
Home / Discussions / C#
   

C#

 
AnswerRe: Check for updates Pin
MaulikDusara26-May-13 18:25
MaulikDusara26-May-13 18:25 
Questionvery off bug Pin
Member 1007416125-May-13 22:46
Member 1007416125-May-13 22:46 
AnswerRe: very off bug Pin
SoMad25-May-13 23:36
professionalSoMad25-May-13 23:36 
QuestionWant to chat through ip address Pin
Ramans44425-May-13 21:24
Ramans44425-May-13 21:24 
GeneralRe: Want to chat through ip address Pin
harold aptroot25-May-13 21:30
harold aptroot25-May-13 21:30 
GeneralRe: Want to chat through ip address Pin
Ramans44425-May-13 21:40
Ramans44425-May-13 21:40 
AnswerRe: Want to chat through ip address Pin
dusty_dex26-May-13 0:57
dusty_dex26-May-13 0:57 
QuestionAssign Mutex to each Thread Pin
RoyDoron25-May-13 5:28
RoyDoron25-May-13 5:28 
Hello,

I have a function, and i would like to let a list/array of Threads run parallel in it (inorder to protect critical sections in it).

I thought I'd create List<mutex> and assign each one to a different Thread:
C#
for( int i =0; i<10; i++)
{ arrmutex[i] = new mutex(); }


and in the function i would like to lock with a
C#
arrmutex.elementAt(someThread).waitOne()
-> a specific variable

It tells me that i cannot do that cause my mutex list is not initialize, AND, the lock wouldn't work..

Can you please help me figure out, how to initialize a list/array of mutexes?

and how to assign each thread a mutex?

Thanks,
AnswerRe: Assign Mutex to each Thread Pin
Dave Kreskowiak25-May-13 14:08
mveDave Kreskowiak25-May-13 14:08 
Questionc# question about gui standard location on every screen Pin
User349025-May-13 4:55
User349025-May-13 4:55 
AnswerRe: c# question about gui standard location on every screen Pin
Abhinav S25-May-13 5:08
Abhinav S25-May-13 5:08 
Questionint to string Pin
Member 1007416125-May-13 1:17
Member 1007416125-May-13 1:17 
AnswerRe: int to string Pin
Richard MacCutchan25-May-13 1:25
mveRichard MacCutchan25-May-13 1:25 
AnswerRe: int to string Pin
Abhinav S25-May-13 1:26
Abhinav S25-May-13 1:26 
GeneralRe: int to string Pin
Member 1007416125-May-13 1:48
Member 1007416125-May-13 1:48 
AnswerRe: int to string Pin
Abhinav S25-May-13 2:19
Abhinav S25-May-13 2:19 
GeneralRe: int to string Pin
Member 1007416125-May-13 3:07
Member 1007416125-May-13 3:07 
AnswerRe: int to string Pin
Abhinav S25-May-13 3:27
Abhinav S25-May-13 3:27 
GeneralRe: int to string Pin
Member 1007416125-May-13 3:51
Member 1007416125-May-13 3:51 
GeneralRe: int to string Pin
Dave Kreskowiak25-May-13 4:06
mveDave Kreskowiak25-May-13 4:06 
AnswerRe: int to string Pin
Abhinav S25-May-13 5:06
Abhinav S25-May-13 5:06 
GeneralRe: int to string Pin
Member 1007416125-May-13 7:09
Member 1007416125-May-13 7:09 
GeneralRe: int to string Pin
Abhinav S25-May-13 9:16
Abhinav S25-May-13 9:16 
Questionhow can i get the attributes in my class dynamically Pin
neodeaths24-May-13 8:55
neodeaths24-May-13 8:55 
AnswerRe: how can i get the attributes in my class dynamically Pin
OriginalGriff24-May-13 9:17
mveOriginalGriff24-May-13 9:17 

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.