FunctionPackage: systemToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1

processor-affinity-mask

Arguments:

Windows only.

The processor affinity in Windows is a number which specifies the number of processors (i.e. chips) that will be used by the running process. In Allegro CL 6.0/6.1/6.2 (and 5.0.x), the best affinity is 1 and there are known problems with higher affinities. The startup code on Windows sets the affinity to 1.

This function is defined on Windows versions only. On Unix versions, the symbols exist but have no function definitions. It uses a Microsoft routine which is documented as working on Windows 95/98/NT/2000.

On Windows, return the current process' processor affinity mask (a number). It does this by calling GetProcessAffinityMask(), and an error is signaled if this routine returns an error (0).

(setf sys:processor-affinity-mask)

On 95/98, this function has no effect.

On NT/2000, the setf value is the new processor affinity mask--see the Microsoft documentation on SetProcessAffinityMask(). Our startup code sets the mask to 1 (see the (internal) function start-lisp-execution defined in [Allegro directory]/src/aclstart.cl). An error is signalled if the call to SetProcessAffinityMask() fails.


Copyright (c) 1998-2002, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 6.2. This page was not revised from the 6.1 page.
Created 2002.2.26.

ToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1