Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Assignment of processes to CPSs?

0 views
Skip to first unread message

Dr. Michael M. Cohen

unread,
Jul 22, 1997, 3:00:00 AM7/22/97
to

On a dual-Pentium-Pro 200, under WinNT 4.0 server,
using applications developed with VC++ 5.0,
I would like to assign a parent task to run on CPU#0 and
a child on CPU#1. Any hints on how to do this
would be appreciated (email preferred).
TIA, MMCohen (mmc...@mambo.ucsc.edu)

--

--====================================================================
= Dr. Michael M. Cohen mmc...@dewi.ucsc.edu =
= Program in Experimental Psychology mmc...@fuzzy.ucsc.edu =
= 429G Social Sciences II 408-459-2655 VOICE =
= University of California - Santa Cruz 408-459-2700 MESSAGES =
= Santa Cruz, CA 95064 USA 408-459-3519 FAX =
= WWW URL: http://mambo.ucsc.edu/psl/mmc.html =

Gary T. Desrosiers

unread,
Jul 22, 1997, 3:00:00 AM7/22/97
to

Try SetProcessAffinityMask() and SetThreadAffinityMask()

Dr. Michael M. Cohen <mmc...@mambo.ucsc.edu> wrote in article
<5r17ik$f...@darkstar.ucsc.edu>...

Chris Marriott

unread,
Jul 22, 1997, 3:00:00 AM7/22/97
to

In article <5r17ik$f...@darkstar.ucsc.edu>, "Dr. Michael M. Cohen"
<mmc...@mambo.ucsc.edu> writes

>On a dual-Pentium-Pro 200, under WinNT 4.0 server,
>using applications developed with VC++ 5.0,
>I would like to assign a parent task to run on CPU#0 and
>a child on CPU#1. Any hints on how to do this
>would be appreciated (email preferred).

Take a look at the "SetThreadAffinityMask" API.

Chris

----------------------------------------------------------------
Chris Marriott, Microsoft Certified Solution Developer.
SkyMap Software, U.K. e-mail: ch...@skymap.com
Visit our web site at http://www.skymap.com

Jim Marshall

unread,
Jul 23, 1997, 3:00:00 AM7/23/97
to

AFAIK - on NT you have no control which CPU is utilized for what. YO
ucan only control the priority of your process and its threads


mmc...@mambo.ucsc.edu (Dr. Michael M. Cohen) wrote:

>On a dual-Pentium-Pro 200, under WinNT 4.0 server,
>using applications developed with VC++ 5.0,
>I would like to assign a parent task to run on CPU#0 and
>a child on CPU#1. Any hints on how to do this
>would be appreciated (email preferred).

> TIA, MMCohen (mmc...@mambo.ucsc.edu)

>--

>--====================================================================
>= Dr. Michael M. Cohen mmc...@dewi.ucsc.edu =
>= Program in Experimental Psychology mmc...@fuzzy.ucsc.edu =
>= 429G Social Sciences II 408-459-2655 VOICE =
>= University of California - Santa Cruz 408-459-2700 MESSAGES =
>= Santa Cruz, CA 95064 USA 408-459-3519 FAX =
>= WWW URL: http://mambo.ucsc.edu/psl/mmc.html =

Author for Visual C++ Developer
http://www.pinpub.com/vcd/home.htm


-------------==== Posted via Sexzilla News ====------------------
http://www.sexzilla.com Search, Read, Post to Usenet
-------------==== With A Whole Lot More ====------------------


0 new messages