Message-ID: <1091.62.39.72.60.1203347858.squirrel@domain.hid> Date: Mon, 18 Feb 2008 16:17:38 +0100 (CET) From: "Fabien MAHOT" MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [Xenomai-help] Problem of thread creation with Xenomai Posix 2 List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org Hello, Thank you for your answers. I ve got a new question about the Posix function pthread_setschedparam(...) with Xenomai. I wrote a program to explain my problem. Program : I ve got a Main thread which creates T1 thread. At the beginning, Main has the highest priority. After the T1 creation, we decide to decrease the Main priority under the T1 priority with pthread_setschedparam. So T1 must preempt Main... #include #include #include #include #include #include #define NB_ELEMENTS 50 int j; char Commentaire [NB_ELEMENTS]; int func(volatile int* i) { return (*i)++; } void AddConsole (char val) { Commentaire[j] =3D val; j++; } void ReadTabConsole (void) { int i; int NbConsole =3D j; for (i=3D0; i