Click here to Skip to main content
15,890,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating DB #1 Pin
Tomasz Sowinski20-Sep-01 9:00
Tomasz Sowinski20-Sep-01 9:00 
QuestionHow to Convert CString to Char* Pin
pathi19-Sep-01 18:29
pathi19-Sep-01 18:29 
AnswerRe: How to Convert CString to Char* Pin
Nemanja Trifunovic19-Sep-01 19:08
Nemanja Trifunovic19-Sep-01 19:08 
GeneralRe: How to Convert CString to Char* Pin
Michael Dunn19-Sep-01 19:43
sitebuilderMichael Dunn19-Sep-01 19:43 
AnswerRe: How to Convert CString to Char* Pin
Christian Graus19-Sep-01 19:25
protectorChristian Graus19-Sep-01 19:25 
AnswerRe: How to Convert CString to Char* Pin
CodeGuy20-Sep-01 3:37
CodeGuy20-Sep-01 3:37 
AnswerRe: How to Convert CString to Char* Pin
Carlos Antollini20-Sep-01 5:40
Carlos Antollini20-Sep-01 5:40 
GeneralControlling deadlock Pin
yccheok19-Sep-01 17:52
yccheok19-Sep-01 17:52 
I face some problem regarding the deadlock issues.

I am implementing a dining philosopher simulator and try to compare various algorithms. Some algorithm will cause deadlock as I expected.

However, is there any ways that I can explicitly release the thread from the deadlock (ie: like click on a "release philosopher from deadlock" button) after I am happy enough to see what deadlick look like.

One of my solution is using
WaitForSingleObject(chopstick_monitor, SOME_LONG_TIME);
instead of
WaitForSingleObject(chopstick_monitor, INFINITE);

However, is there any better way so that the philosopher will always remains at the deadlock state unless I command them to recover from deadlock.

thank you. if possible, pls e-mail the solution to yccheok@yahoo.com

regards
yccheok
GeneralRe: Controlling deadlock Pin
Joaquín M López Muñoz19-Sep-01 20:15
Joaquín M López Muñoz19-Sep-01 20:15 
GeneralVC++ and VB interfacing - How To Pin
john john mackey19-Sep-01 11:16
john john mackey19-Sep-01 11:16 
GeneralRe: VC++ and VB interfacing - How To Pin
Nemanja Trifunovic19-Sep-01 11:46
Nemanja Trifunovic19-Sep-01 11:46 
GeneralRe: VC++ and VB interfacing - How To Pin
Anders Molin20-Sep-01 10:56
professionalAnders Molin20-Sep-01 10:56 
GeneralRe: VC++ and VB interfacing - How To Pin
13-Feb-02 6:23
suss13-Feb-02 6:23 
QuestionIs Windows NT 4 SSE compatible/supported? Pin
Robert Buldoc19-Sep-01 7:27
Robert Buldoc19-Sep-01 7:27 
QuestionMemory leak? Pin
Kevnar19-Sep-01 6:54
Kevnar19-Sep-01 6:54 
AnswerRe: Memory leak? Pin
Ghazi H. Wadi19-Sep-01 12:25
Ghazi H. Wadi19-Sep-01 12:25 
AnswerRe: Memory leak? Pin
Tim Smith19-Sep-01 12:32
Tim Smith19-Sep-01 12:32 
GeneralClient/Server in MFC Pin
Rickard Andersson2019-Sep-01 6:34
Rickard Andersson2019-Sep-01 6:34 
GeneralRe: Client/Server in MFC Pin
Ghazi H. Wadi19-Sep-01 12:27
Ghazi H. Wadi19-Sep-01 12:27 
GeneralADO Connection Pin
Stu19-Sep-01 6:29
Stu19-Sep-01 6:29 
GeneralRe: ADO Connection Pin
ORi x19-Sep-01 6:41
ORi x19-Sep-01 6:41 
GeneralRe: ADO Connection Pin
Stu19-Sep-01 6:50
Stu19-Sep-01 6:50 
GeneralRe: ADO Connection Pin
Michael P Butler19-Sep-01 11:11
Michael P Butler19-Sep-01 11:11 
GeneralRe: ADO Connection Pin
Stu19-Sep-01 11:28
Stu19-Sep-01 11:28 
GeneralRe: ADO Connection Pin
Michael P Butler19-Sep-01 22:21
Michael P Butler19-Sep-01 22:21 

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.