🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer
3 messages
3 total messages Started by David Yeh Fri, 29 Mar 1991 01:37
questions on os/2
#2488
Author: David Yeh
Date: Fri, 29 Mar 1991 01:37
19 lines
973 bytes

Hi,
   I am a new OS/2 programmer, and I have two questions here:

   1. Is there any way to kill an OS/2 process which is currently blocking?
      I have tried the following methods but they all failed:
      a. close the window;
      b. using "kill" in ps utility;
      c. using DosKillProcess().

   2. Is there any function calls in OS/2 performing exactly the same
      functionality as "fork()" does in UNIX? I have used DosExecPgm(),
      spawn(), but the child process they created did not really inherit
      everything its parent process has.

      Thanks a lot,

      David
Re: questions on os/2
#2495
Author: (the) IBMMAN
Date: Fri, 29 Mar 1991 14:16
24 lines
1558 bytes
From article <39443@ubvax.UB.Com>, by yeh@ubvax.UB.Com (David Yeh):
>    1. Is there any way to kill an OS/2 process which is currently blocking?
>       I have tried the following methods but they all failed:
>       a. close the window;
>       b. using "kill" in ps utility;
>       c. using DosKillProcess().

We have a utility called KILL.EXE which simply calls DosKillProcess.  It
has never failed for me.

>    2. Is there any function calls in OS/2 performing exactly the same
>       functionality as "fork()" does in UNIX? I have used DosExecPgm(),
>       spawn(), but the child process they created did not really inherit
>       everything its parent process has.

I have never heard of one, and I think it would be extremely difficult to
write one due to the fact that there can be multiple data segments.  I'm
not typically a Unix programmer, but if I recall properly (correct me if I'm
wrong) fork()'s children inherit everything from the parent including their
very own copy of the data block (and if you order now, we'll throw in a
free disk pack... ;) .

Cheers,
Q
Re: why os/2 doesn't have fork()
#2496
Author: Andrew Ernest
Date: Sat, 30 Mar 1991 18:21
10 lines
1069 bytes
In article <1991Mar29.141629.9239@hubcap.clemson.edu> ibmman@eng.clemson.edu ((the) IBMMAN) writes:
>I have never heard of one, and I think it would be extremely difficult to
>write one due to the fact that there can be multiple data segments.  I'm

I don't know the reason why os/2 doesn't have fork() but it ISN'T because
there are multiple data segments.  Although they are now obsolete, there
used to be UNIX systems which ran on 80286 systems.  These systems allocated
a new segment each time you called sbrk().  They had no problems with fork().
-- 
Andrew Ernest <andrew@ramona.Cary.NC.US>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads