title: How to set in proper way priority of one of two threads using pthreads
body: <p>Example. I want to share <code>getFrame</code> and <code>processFrame</code> in seperated threads.
  I think that I will make two threads for every action, but I still doesn't know how to set properly priority of threads I mean, I would like to have more priority  for <code>getFrame</code>  thread than <code>processFrame</code>, but If I have only two threads than I can set a priority for <code>getFrame</code> after created this thread, so the priority will be working after done action  by everyone threads. How can I solve it?
  Maybe I could create a main thread which will make another two threads for <code>getFrame</code> and <code>processFrame</code> and then I set a priority for <code>getFrame</code> thread?</p>