Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <200106251631.f5PGV0H19106@pilot14.cl.msu.edu> Subject: setting thread prioirty To: cygwin AT sources DOT redhat DOT com Date: Mon, 25 Jun 2001 12:31:00 -0400 (EDT) From: "Brian Michael Genisio" X-Mailer: ELM [version 2.4 PL25] Content-Type: text/plain Hello, I was wondering if it is possible in cygwin for a thread to have a different priority than it's parent. That is, If I call a program with nice, such as : nice -n -20 And the program spawns a thread... I want the thread to run at Normal priortiy, and the main thread to remain at high prioirity. I have tried setting the attribute to priority 0 with the pthread_attr_setschedparam. Unfortunately, this does not work for me. The two threads compete for processor, slowing down the entire system. Before I was using threads, I had the two threads as separate programs, and I could set each program to the level I chose... but IPC communication was slow, or didnt work well enough for me. So, I put them in the same thread, and now they act as if I put the separate programs in high priority. Any Ideas? Thanks, Brian -- --------------------------- \\|// Brian Genisio (o o) genisiob AT pilot DOT msu DOT edu ~~oOOo~(_)~oOOo~~~~~~~~~~~~~~~~~~~~~~~~~~ -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple