|
-
October 11th, 2010, 10:17 AM
#1
How To Implement Mutex In Windows
Hi all,
In windows API we have 3 functions to control mutex:
CreateMutex,OpenMutex, and ReleaseMutex.
Currently, I want to implement it by myself so I have google it but I found nothing.
What should I do to solve this problem ?
Thanks.
My English is very bad. So tell me if Something I talked make u confuse.
My Ebook Store: www.coding.vn/book.php
-
October 11th, 2010, 12:14 PM
#2
Re: How To Implement Mutex In Windows
Victor Nijegorodov
-
October 11th, 2010, 09:05 PM
#3
Re: How To Implement Mutex In Windows
Hey, thank for your quickreply. But you have missunderstood me.
I just want to implement 3 above functions like CreateMutex,OpenMutex, and ReleaseMutex by myself.
My English is very bad. So tell me if Something I talked make u confuse.
My Ebook Store: www.coding.vn/book.php
-
October 11th, 2010, 10:19 PM
#4
Re: How To Implement Mutex In Windows
 Originally Posted by zkidkid
I just want to implement 3 above functions like CreateMutex,OpenMutex, and ReleaseMutex by myself.
Can I ask why?
-
October 12th, 2010, 12:59 AM
#5
Re: How To Implement Mutex In Windows
Victor Nijegorodov
-
October 12th, 2010, 06:56 AM
#6
Re: How To Implement Mutex In Windows
Currently, I want to implement it by myself so I have google it but I found nothing.
Actually, I doubt there is any sense in trying to implement Windows kernel object functionality in user mode. Or did you mean you are ready to break into the kernel? 
What should I do to solve this problem ?
Do you qualify this as problem? May I ask you why?
Best regards,
Igor
-
October 13th, 2010, 01:25 AM
#7
Re: How To Implement Mutex In Windows
hi, thanks for your quick answer.
Cause it's a question from my friend. He had an interview from Aricent Company. And he asked me for the solution. But I know nothing.
My English is very bad. So tell me if Something I talked make u confuse.
My Ebook Store: www.coding.vn/book.php
-
October 13th, 2010, 01:50 PM
#8
Re: How To Implement Mutex In Windows
 Originally Posted by zkidkid
hi, thanks for your quick answer.
Cause it's a question from my friend. He had an interview from Aricent Company. And he asked me for the solution. But I know nothing.

The correct interview answer would be to describe how to use the CreateMutex et. al. family of api's. You could go on to say that implementing them would be pointless since the system provides them for you.
-
October 17th, 2010, 04:58 PM
#9
Re: How To Implement Mutex In Windows
If i'm reading this correctly, you are asking how if you were to write a kernal you would provide mutexes. The commonly used algorithms are Dekkers and Petersons.
Get Microsoft Visual C++ Express here or CodeBlocks here.
Get STLFilt here to radically improve error messages when using the STL.
Get these two can't live without C++ libraries, BOOST here and Loki here.
Check your code with the Comeau Compiler and FlexeLint for standards compliance and some subtle errors.
Always use [code] code tags [/code] to make code legible and preserve indentation.
Do not ask for help writing destructive software such as viruses, gamehacks, keyloggers and the suchlike.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|