How to set semaphore,priority,size of stacks etc. of a task

How to set semaphore,priority,size of stacks etc. of a task when I create a task? I am confused of which should be used between a process and a thread when spawn a task?
Could anyone can tell me?Thanks!