Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What happens when thread gets the same mutex object multiple times?

Status
Not open for further replies.

mickey2005

Banned
Newbie level 1
Joined
Sep 25, 2005
Messages
0
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,280
Activity points
0
IF A THREAD OWNS A MUTEX OBJECT AND IT ACQUIRES THE SAME MUTEX OBJECT MULTIPLE TIMES,THEN WHAT ARE THE RULES?
 

Re: RTOS THREADS

Maybe it's different in other RTOS, but in uCOS you will get an error (ret = OS_PRIO_EXIST).

Gomez
 

Re: RTOS THREADS

well generally thread can acquire a mutex multiple times. but it will need to release the mutex the number of times it acquired it.
 

Re: RTOS THREADS

I believe a multiple request for a mutex as abdulsalam described is usually referred to as a semaphore.
 

Re: RTOS THREADS

for the difference between the mutex and semaphore following link may help

**broken link removed**
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top