The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


cmd hangs

Posted by parag on November 03, 2000 at 9:25 AM

hi the problems lies in the fact that some windows system provide a small buffer for in put and out put since ur apllication is swapaing a process the out put of the process is wrote into these buffer so it is hte responsiblity of the parent to read the out put of the child process if it dose not read it goes into deadlock .so the solution provided in cmd is that if we use cmd it will output something on the screen we are not reading it so now the process goes in to deadlock and the cmd hangs once u do control c on cmd the second process runs .Similary care should be taken to read the output of the child process or redirect it to some files.



Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us