ulimit() sets some resource values on a per process basis only. A process is a container for threads, so the threads have to share resources.
Alternatively, you can fork() new processes which can each call ulimit().
What are you trying to do exactly?
|