home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,024 of 2,978   
   Femme Verbeek to MSTR   
   Re: Alternate between EXEC() child progr   
   23 Jan 06 17:11:05   
   
   From: fv@nospam.tcenl.com   
      
   MSTR schreef:   
   > A simple question:   
   > EXEC() function allows running a child program, inside your program.   
   > Once this child program is finished, the rest of the original program   
   > is executed. So, is it possible to make a kind of multi-tasking with   
   > this function? I mean, running two child programs, and, when the user   
   > press [ENTER] it alternates between this two program???????????   
   > thanks   
   >   
   It depends on your OS.   
   Pure MS Dos is not suitable for multitasking.   
   What happens is that the focus simply passes from one program to   
   another. So program 1 may start program 2, which may start program 3. As   
   long as program 3 remains active, programs 1 and 2 remain inactive.   
   Close program 3 and you are back in program 2.   
   In order to have a multitasking system, you must find a way to divide   
   processor time between the different processes. Perhaps you can switch   
   the focus without unloading when you make the separate processes TSR.   
      
   If you run a program in a dos box, exec may start a new program as a   
   separate process. E.g. You can call the windows Notepad editor, which   
   will open in a separate window and gets the focus. If you click of the   
   dos box again, it gets the focus and continues runnig without closing   
   the notepad window.   
      
   --   
   Femme   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca