This example procedure uses the prctl command to temporarily add a new privileged value to deny the use of more than three LWPs per project for the x-files project. The result is comparable to the result in How to Set the Maximum Number of LWPs for Each Task in a Project.
# newtask -p x-files
# id -p uid=0(root) gid=1(other) projid=101(x-files)
# prctl -n project.max-lwps -t privileged -v 3 -e deny -i project x-files
# prctl -n project.max-lwps -i project x-files
process: 111108: csh
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-lwps
usage 203
privileged 1000 - deny -
system 2.15G max deny -