PK_SESSION_smp_o_t   

struct PK_SESSION_smp_o_s
    {
    int                 o_t_version;         --- version number
    PK_thread_t         thread_format;       --- (PK_thread_per_processor_c)
    int                 n_threads;           --- (1)
    PK_LOGICAL_t        on_single_processor; --- (PK_LOGICAL_false)
    };
typedef struct PK_SESSION_smp_o_s PK_SESSION_smp_o_t;


This option structure is supplied to PK_SESSION_set_smp.

Used in:

PK_SESSION_set_smp


Description of fields:



'thread_format'         In conjunction with the 'n_threads' field,
                        determines the number of threads to be
                        invoked. Permitted values are

                            PK_thread_disabled_c
                            PK_thread_per_processor_c
                            PK_thread_absolute_c


'n_threads'             The number of threads to be invoked for
                        symmetric multi-processing (SMP). The effect
                        of this value is dependent on the value of
                        the 'thread_format' field.

                        The useful combinations are

                            PK_thread_disabled_c        0
                            PK_thread_per_processor_c   1
                            PK_thread_absolute_c        2 to 8

                        A value of more than 1 for PK_thread_per_processor_c
                        will create more threads than there are processors.
                        This may be useful for testing, but will not improve
                        performance. A value of 1 for PK_thread_absolute_c
                        is also only useful for testing and will not improve
                        performance either.

                        Parasolid will create a maximum of 8 threads
                        for SMP work.

                        This field may only be set to zero if the
                        'thread_format' field is set to the value,
                        'PK_thread_disabled_c'.


'on_single_processor'   PK_LOGICAL_true if SMP is to be enabled on
                        single processor platforms.