Click here to Skip to main content
15,913,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionmemcat() Pin
chaitanya224-Mar-06 3:44
chaitanya224-Mar-06 3:44 
AnswerRe: memcat() Pin
Gary R. Wheeler4-Mar-06 4:28
Gary R. Wheeler4-Mar-06 4:28 
QuestionAppending arrays Pin
chaitanya224-Mar-06 3:43
chaitanya224-Mar-06 3:43 
AnswerRe: Appending arrays Pin
John R. Shaw4-Mar-06 15:56
John R. Shaw4-Mar-06 15:56 
Questionword counter using threadings Pin
nanjesh4-Mar-06 3:37
nanjesh4-Mar-06 3:37 
AnswerRe: word counter using threadings Pin
Saurabh.Garg4-Mar-06 13:40
Saurabh.Garg4-Mar-06 13:40 
Questionword counter using threadings Pin
nanjesh4-Mar-06 3:36
nanjesh4-Mar-06 3:36 
Questionsimulate a real race condition Pin
zhshqzyc4-Mar-06 2:25
zhshqzyc4-Mar-06 2:25 
I am going to implement Dekker's algorithm to
guarantee mutex exclusion between P1 and P2.The
pseudocode are:

<br />
  void p1( )<br />
     {<br />
          flag = 0;<br />
          ...<br />
         "critical section..."<br />
          ...<br />
     }<br />
<br />
void p2( )<br />
    {<br />
        flag = 1;<br />
         ...<br />
         "critical section..."<br />
        ...<br />
    } <br />
<br />
<br />
   void main()<br />
  {<br />
      parbegin(p1,p2);<br />
       ...<br />
  }<br />

Do you know how to treat(write) pseudocode "parbegin(p1,p2)". I want to simulate a real race condition, p1 and p2 needs to be concurrent.
Can I just express them as:
void main()
{
p1;
p2;
...
}
QuestionCan I use the ANSI String Class in a normal class Pin
Tom Moore4-Mar-06 1:36
Tom Moore4-Mar-06 1:36 
AnswerRe: Can I use the ANSI String Class in a normal class Pin
Gary R. Wheeler4-Mar-06 1:51
Gary R. Wheeler4-Mar-06 1:51 
Questioncan I do win32 app without vc? Pin
derek74-Mar-06 1:19
derek74-Mar-06 1:19 
AnswerRe: can I do win32 app without vc? Pin
Nemanja Trifunovic4-Mar-06 2:37
Nemanja Trifunovic4-Mar-06 2:37 
QuestionCSocket: Making the application wait till a Blocking call gets over Pin
Spykraft3-Mar-06 23:20
Spykraft3-Mar-06 23:20 
QuestionHow to use WSAAsyncSelect in windows service Pin
milkyhonglee3-Mar-06 22:15
milkyhonglee3-Mar-06 22:15 
AnswerRe: How to use WSAAsyncSelect in windows service Pin
Peter Weyzen4-Mar-06 8:52
Peter Weyzen4-Mar-06 8:52 
GeneralHow about WSAEventSelect? Pin
milkyhonglee4-Mar-06 14:30
milkyhonglee4-Mar-06 14:30 
Question$(ConfigurationName) Pin
derek73-Mar-06 21:40
derek73-Mar-06 21:40 
AnswerRe: $(ConfigurationName) Pin
Gary R. Wheeler4-Mar-06 2:19
Gary R. Wheeler4-Mar-06 2:19 
GeneralRe: $(ConfigurationName) Pin
derek74-Mar-06 3:19
derek74-Mar-06 3:19 
GeneralRe: $(ConfigurationName) Pin
Gary R. Wheeler4-Mar-06 4:06
Gary R. Wheeler4-Mar-06 4:06 
GeneralRe: $(ConfigurationName) Pin
derek75-Mar-06 17:42
derek75-Mar-06 17:42 
Questiondebug function in dll Pin
derek73-Mar-06 21:11
derek73-Mar-06 21:11 
AnswerRe: debug function in dll Pin
Malli_S3-Mar-06 21:37
Malli_S3-Mar-06 21:37 
GeneralRe: debug function in dll Pin
derek73-Mar-06 21:58
derek73-Mar-06 21:58 
Questionc++ Pin
yaaqub3-Mar-06 21:09
yaaqub3-Mar-06 21:09 

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.