From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bart Veer To: lunn@ma.tech.ascom.ch Cc: ecos-discuss@sourceware.cygnus.com Subject: [ECOS] Re: Unix friendly Idle loop Date: Wed, 29 Sep 1999 04:19:00 -0000 Message-id: <199909291118.MAA25736@sheesh.cygnus.co.uk> References: <199909290721.JAA02736@biferten.ma.tech.ascom.ch> X-SW-Source: 1999-09/msg00063.html >>>>> "Andrew" == Andrew Lunn writes: Andrew> When the Synthetic target executes the idle thread it Andrew> spins, eating the CPU. Could this be made a bit more Andrew> friendly to other processes? Andrew> I thought about installing a function in the Andrew> HAL_IDLE_THREAD_ACTION Andrew> which calls select(2). Andrew> Is this likly to break anything? Another possibility would be to do a nice() or setpriority() system call during the synthetic target startup code. This would still be annoying if you are running something like SETI@home in the background, but otherwise it should do pretty much what you need. Bart Veer // eCos net maintainer