bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting thread priority


From: Julie Russell
Subject: Setting thread priority
Date: Thu, 09 Oct 2003 15:35:24 +1000

Hi Everyone!

Thanks for all the advice, I've got the libraries installed now! I am trying
to run a thread in an x11 application, using Xine in one window and x11
libraries in the other. Xine uses multi-threading and I am using common
threads to run the other window, however I am experiencing deadlocking. I
want to set the priority of the thread I created to fairly low, however I
couldn't find any documentation on what an average low priority is. Does
anyone know what priority I would be looking at? Also, I noticed that the
constructor of Thread not only takes a priority but a stack size. I am just
learning C++, what stack size would I be looking at setting? Or is there a
default? Does anyone have any suggestions on how else to prevent
deadlocking? I am guessing that they both want to share the video driver,
but I am not sure and have no control over the other threads in the
application, only the one I created.

Thanks again,
Julie.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]