Re: [linux-audio-dev] malloc() in RT code considered not-so-harmful?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] malloc() in RT code considered not-so-harmful?
From: Tim Hockin (thockin_AT_hockin.org)
Date: Tue Jul 13 2004 - 18:38:37 EEST


On Tue, Jul 13, 2004 at 02:12:21PM +0200, Olivier Guilyardi wrote:
> >2. When your lock-free malloc needs more memory from the OS it will
> >still take a system call to do it. I believe I have heard it said in
> >the past that system calls of any sort are unacceptable in RT code, but
> >isn't this a bit a of a hard-line position?
>
> Is msgrcv() unacceptable as well, then ?

If you want to be careful, then yes. You can ask msgrcv to not block, but
I'd personally double check the kernel code. :)

Tim


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Tue Jul 13 2004 - 18:48:12 EEST