The compile command is:
CC -xcode=pic32 test.cxx -o test -lm -lsocket -lnsl -lresolv -ldl -lCrun -mt -lrt
Take a look at the Time Sharing material here:
There seems to be a user limit to the priority that can be assigned to a process. The default limit is zero:
$ priocntl -d TIME SHARING PROCESSES: PID[/LWP] TSUPRILIM TSUPRI 23050 0 0
I believe you're hitting this limit.
For other Solaris 10 platforms, the result of this command is same.
How to resolve it?
More information: It can work well if I login using root account. But it is still failure if using basic Solaris user.
More information: If I set the priority to -7, it can work well. But, definitely, I want to set higher priority, but it can not work.