|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
Solaris hp under Multithreading can not be used for transplant procedures, and why?
Pthread_create return 0.
However, no response to create the thread.
There hp under the thread priority to deal with what sets them apart? |
Solaris hp under Multithreading can not be used for transplant procedures, and why?
-->
Above a mistake not to create lines into the issue of thread priority issue.
What is the problem with this code following incorrect? No matter in the next solaris.
[code]pthread_attr_t High_prio_attr;
Int ret;
If ((ret=pthread_attr_init (&high_prio_attr)) "0)
Cout "" "Error : pthread_attr_init" "<ret" <endl;
Struct sched_param param;
If ((ret=pthread_attr_getschedparam (&high_prio_attr, ¶m)) "0)
Cout "" "Error : pthread_attr_getschedparam" "<ret" <endl;
Cout "" "bath" "<param.sched_priority" <endl;
Param.sched_priority++;
If ((ret=pthread_attr_setschedparam (&high_prio_attr, ¶m)) "0)
Cout "" "Error : pthread_attr_setschedparam" "<ret" <endl;
[/code] |
| |