home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sun.apps:1666 comp.sys.sun.hardware:3974
- Path: sparky!uunet!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.sys.sun.apps,comp.sys.sun.hardware
- Subject: Re: How utilize multi proc's in galaxy MP670???
- Date: 20 Aug 1992 16:38:16 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 25
- Message-ID: <170hpoINNntm@early-bird.think.com>
- References: <1992Aug20.030523.25228@news.Hawaii.Edu>
- NNTP-Posting-Host: telecaster.think.com
-
- In article <1992Aug20.030523.25228@news.Hawaii.Edu> dan@wiliki.eng.hawaii.edu (Dan Sternlicht) writes:
- >I have thought of merely spawning several processes in the program
- >and hoping that the scheduler allocates them to the separate processors,
- >but maybe I'm dreaming.
-
- That's the way to do it. Currently, SunOS doesn't provide any mechanism
- for manipulating physical processors directly. A process can only run on
- one processor at a time (there's a field in the proc structure that
- contains the current CPU id), so you have to use multiple processes if you
- want any chance of simultaneous execution. You can't guarantee that all
- your processes will run simultaneously, since they're competing for the
- processors with all the other processes on the system.
-
- On Multics there are commands that can be used to limit a process to a
- given set of processors, or take some processors out of general use (but a
- process that attaches to them explicitly can still use them -- this is used
- for running diagnostics on a specific processor). Such commands could be
- used to partition a system into user and daemon processors.
-
-
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-