OpenTP1 Version 7 Programming Guide

[Contents][Index][Back][Next]

2.1.6 Setting schedule priorities for service requests

Multiple service requests called for one process can be given priorities. This can be done by using the function dc_rpc_set_service_prio() [CBLDCRPC ('SETSVPRI')] in which a priority is specified for a service request before using the function dc_rpc_call(). The priority of the service request is then reported to the server via the schedule queue for the server UAP.

For a process that does not use the function dc_rpc_set_service_prio(), the value 4, which is the default interpretation of the schedule service, is set as the priority of service requests. The specified schedule priorities can be referenced using the function dc_rpc_get_service_prio() [CBLDCRPC('GETSVPRI')].

On queue-receiving servers (SPPs scheduled by the schedule service), the priorities specified for service requests are valid only when service_priority_control=Y (priority control in effect) is specified in the user service definition of the server UAP. If priority control is not used on the server UAP requested for service, the call of this function has no effect.

On servers that receive requests from socket (SPPs which receive service requests without intervention of a schedule queue), the priorities set by the client UAP are always in effect.

The call of the function dc_rpc_set_service_prio() for the following service requests has no effect: