From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ankit Jain Subject: soft real-time scheduling Date: Sun, 26 Sep 2004 15:08:31 +0100 (BST) Sender: gcc-help-owner@gcc.gnu.org Message-ID: <20040926140831.62007.qmail@web52901.mail.yahoo.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: List-Unsubscribe: List-Archive: List-Post: List-Help: List-Id: Content-Type: text/plain; charset="us-ascii" To: linux prg Cc: gcc hi /* soft realtime scheduling variable */ struct sched_param *p; /* set soft real-time scheduling */ sched_getparam(0,p); p->sched_priority = 50; if (sched_setscheduler(0,SCHED_FIFO,p)) fprintf(stderr,"Could not change scheduler settings\n"); if anyone knows about this then i need some help p is a pointer to the structure sched_param which is defined in sched.h this structure has a variable __sched_priority where i have to set the priority of the process p->sched_priority =50 this line gives a segmentation fault. how t oaccess this variable (__sched_priority) of the header file thanks ankit ________________________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html