mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 13:22:39 +08:00
According to POSIX priority value returned from pthread_getschedparam() shall be the value specified by the most recent pthread_setschedparam(), pthread_setschedprio(), or pthread_create() call affecting the target thread. Read this as though a temporary lower priority due to the sporadic server policy shall not be visible through pthread_getschedparam(). Thus, use rtems_task_set_priority() to get the current priority of the threads. Use a priority ceiling mutex to prevent sporadic server priority adjustments.
21 lines
848 B
Plaintext
21 lines
848 B
Plaintext
*** BEGIN OF TEST PSX 9 ***
|
|
Init's ID is 0x0b010001
|
|
Init: pthread_getschedparam - SUCCESSFUL
|
|
Init: Fri May 24 11:05:00 1996 - current priority = 2
|
|
Init: pthread_setschedparam - SUCCESSFUL (sporadic server)
|
|
Init: Fri May 24 11:05:00 1996 - new priority = 252
|
|
Init: Fri May 24 11:05:00 1996 - new priority = 252
|
|
Init: Fri May 24 11:05:00 1996 - new priority = 253
|
|
Init: Fri May 24 11:05:00 1996 - new priority = 252
|
|
Init: Fri May 24 11:05:00 1996 - new priority = 253
|
|
|
|
Init: pthread_setschedparam - SUCCESSFUL (sporadic server)
|
|
Init: Initializing mutex attributes for priority ceiling
|
|
Init: Creating a mutex
|
|
Init: Fri May 24 11:05:00 1996 - new priority = 252
|
|
Init: pthread_mutex_lock acquire the lock
|
|
Init: unlock mutex
|
|
Init: Fri May 24 11:05:03 1996 - new priority = 253
|
|
Init: Fri May 24 11:05:03 1996 - new priority = 252
|
|
*** END OF TEST PSX 9 **
|