From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <50BC705D.2040407@xenomai.org> Date: Mon, 03 Dec 2012 10:26:53 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <4FF369E5.5040007@xenomai.org> <4FF402AD.3020601@xenomai.org> <4FF415AB.2030503@xenomai.org> <4FF44389.3030209@xenomai.org> <4FF44C52.6050809@xenomai.org> <4FF585C4.1000708@xenomai.org> <50AA3732.5000701@xenomai.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai] Xenomai and normal linux application - Wait time with select() not reliable List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?SmVucyBLw7ZobGVy?= Cc: xenomai@xenomai.org On 12/03/2012 08:59 AM, Jens K=C3=B6hler wrote: > Hello, >=20 > I found following additionaly out: > One of the Xenomai tasks writes cyclically to a shared linux memory > (its not a Xenomai shared memory). Write and read access is controlled > by Linux semaphores. If shared memory writing is out-commented is > there never a delay problem. If you expect a task using a Linux semaphore to have bounded latencies, you misunderstood the way Xenomai works. >=20 > I found following explanation about Xenomai in internet. Could it > reason for problem? >=20 > "If an interrupt arrives while a Xenomai thread executes in secondary > mode, it is not forwarded to Linux! The mechanism works as follows: > When a Xenomai thread is executed in secondary mode, the interrupt > shield domain is activated All Linux interrupts are stalled, until the > Xenomai thread completes execution. The interrupts will be served > again when Linux goes back to execute in background mode." The interrupt shield no longer exists. --=20 Gilles.