Click here to Skip to main content
15,906,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionis socket in win32 (vc++) is blocking Pin
vineeshV13-Nov-06 5:53
vineeshV13-Nov-06 5:53 
AnswerRe: is socket in win32 (vc++) is blocking Pin
James R. Twine13-Nov-06 6:08
James R. Twine13-Nov-06 6:08 
AnswerRe: is socket in win32 (vc++) is blocking Pin
Mark Salsbery13-Nov-06 6:14
Mark Salsbery13-Nov-06 6:14 
AnswerRe: is socket in win32 (vc++) is blocking Pin
vineeshV13-Nov-06 6:30
vineeshV13-Nov-06 6:30 
GeneralRe: is socket in win32 (vc++) is blocking Pin
Mark Salsbery13-Nov-06 7:06
Mark Salsbery13-Nov-06 7:06 
GeneralRe: is socket in win32 (vc++) is blocking Pin
led mike13-Nov-06 7:30
led mike13-Nov-06 7:30 
GeneralRe: is socket in win32 (vc++) is blocking Pin
Mark Salsbery13-Nov-06 7:31
Mark Salsbery13-Nov-06 7:31 
GeneralRe: is socket in win32 (vc++) is blocking Pin
vineeshV13-Nov-06 7:48
vineeshV13-Nov-06 7:48 
the actual purpose of the code is a remote execution of programs.
i am trying to shedule windows programs in unix machines .
the failure case is only one
*)
suppose i am scheduling four parellel programs(PG1,PG2,PG3,PG4) .after the completion of first program (e PG1)i have to fire another program (PG5)
and only after the completion of all the parellel programs (PG1--PG4) another program PG6 has to be fired.All these programs are windows programs residing in windows machines.only the sheduling is done at the unix machine.
windows machines contains some agent programs for this and they are multithreaded. they send the details to unix serverand if program exists sends an exit status .this status should be read by unix machine and update the status in schedule.

suppose pg1 finishes first it will fire the program pg5 right?\
but it will not update the stauts to finish since the socket for the particular thread was not read as closed at unix .hence it has to wait for all the threads to finish and only after the programs pg1-pg4 are finishes
pg5 and pg6 are fired .

iam synchronized the threads and tried shutdowm with WSAAsyncSelect but all doesnt help.




vineesh

GeneralRe: is socket in win32 (vc++) is blocking Pin
Mark Salsbery13-Nov-06 7:56
Mark Salsbery13-Nov-06 7:56 
GeneralRe: is socket in win32 (vc++) is blocking Pin
vineeshV13-Nov-06 8:18
vineeshV13-Nov-06 8:18 
GeneralRe: is socket in win32 (vc++) is blocking Pin
Mark Salsbery13-Nov-06 8:50
Mark Salsbery13-Nov-06 8:50 
GeneralRe: is socket in win32 (vc++) is blocking Pin
led mike13-Nov-06 8:11
led mike13-Nov-06 8:11 
GeneralRe: is socket in win32 (vc++) is blocking Pin
vineeshV13-Nov-06 8:20
vineeshV13-Nov-06 8:20 
GeneralRe: is socket in win32 (vc++) is blocking Pin
led mike13-Nov-06 9:08
led mike13-Nov-06 9:08 
GeneralRe: is socket in win32 (vc++) is blocking Pin
Mark Salsbery13-Nov-06 11:30
Mark Salsbery13-Nov-06 11:30 
GeneralRe: is socket in win32 (vc++) is blocking Pin
led mike13-Nov-06 11:43
led mike13-Nov-06 11:43 
GeneralRe: is socket in win32 (vc++) is blocking Pin
Mark Salsbery13-Nov-06 8:51
Mark Salsbery13-Nov-06 8:51 
GeneralRe: is socket in win32 (vc++) is blocking Pin
vineeshV14-Nov-06 7:04
vineeshV14-Nov-06 7:04 
Questionpass_thru in hyperthreading Pin
vineeshV13-Nov-06 5:49
vineeshV13-Nov-06 5:49 
AnswerRe: pass_thru in hyperthreading Pin
James R. Twine13-Nov-06 6:00
James R. Twine13-Nov-06 6:00 
GeneralRe: pass_thru in hyperthreading Pin
Mark Salsbery13-Nov-06 6:20
Mark Salsbery13-Nov-06 6:20 
GeneralRe: pass_thru in hyperthreading Pin
James R. Twine13-Nov-06 6:39
James R. Twine13-Nov-06 6:39 
GeneralRe: pass_thru in hyperthreading Pin
Mark Salsbery13-Nov-06 7:07
Mark Salsbery13-Nov-06 7:07 
GeneralRe: pass_thru in hyperthreading Pin
vineeshV13-Nov-06 6:23
vineeshV13-Nov-06 6:23 
GeneralRe: pass_thru in hyperthreading Pin
James R. Twine13-Nov-06 6:41
James R. Twine13-Nov-06 6:41 

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.