All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Fabien MAHOT <fabien.mahot@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Posix timers increase
Date: Wed, 9 Apr 2008 16:39:43 +0200	[thread overview]
Message-ID: <18428.54575.238202.690441@domain.hid> (raw)
In-Reply-To: <14532.81.252.86.91.1207740558.squirrel@domain.hid>

Fabien MAHOT wrote:
 > > Hello,
 > >
 > > I ve got an application in which I create a lot of posix timers (with
 > > timer_create). After a while timer_create returns an error. There is no
 > > available timer. I would like to increase the timer amount. How can I do
 > > this ? there is a link with "Size of the system heap" kernel configuration
 > > option ?
 > >
 > > thanks a lot
 > >
 > 
 > 
 > folder xenomai : ksrc/skins/posix/timer.c : #define PSE51_TIMER_MAX 128

Beware: posix timers use signals, and signals in user-space cause the
target thread to switch to secondary mode. So, timers are or little use
in user-space. You would better use clock_nanosleep, or
pthread_make_periodic_np/pthread_wait_np.

-- 


					    Gilles.


  reply	other threads:[~2008-04-09 14:39 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-17 14:43 [Xenomai-help] Application crash Fabien MAHOT
2008-03-17 18:23 ` Gilles Chanteperdrix
2008-03-18 17:18   ` Fabien MAHOT
2008-03-19  8:42 ` Gilles Chanteperdrix
2008-03-19 11:55   ` Fabien MAHOT
2008-03-19 13:13     ` Gilles Chanteperdrix
2008-03-19 14:00       ` Fabien MAHOT
2008-03-19 15:33       ` Fabien MAHOT
2008-03-24 13:11         ` Gilles Chanteperdrix
2008-03-24 17:27           ` Gilles Chanteperdrix
2008-03-24 22:15             ` Gilles Chanteperdrix
2008-03-25 17:04               ` Fabien MAHOT
2008-03-25 17:37                 ` Gilles Chanteperdrix
2008-03-26  9:14                   ` Fabien MAHOT
2008-03-26  9:36                     ` Gilles Chanteperdrix
2008-03-26 10:06                       ` Fabien MAHOT
2008-03-26 19:58                         ` Gilles Chanteperdrix
2008-03-27  9:51                           ` Fabien MAHOT
2008-04-03  8:59                           ` Fabien MAHOT
2008-04-09  9:00                           ` [Xenomai-help] Posix timers increase Fabien MAHOT
2008-04-09 11:29                             ` Fabien MAHOT
2008-04-09 14:39                               ` Gilles Chanteperdrix [this message]
2008-04-09 14:45                                 ` Breno Carneiro Pinheiro
2008-03-26 10:35                       ` [Xenomai-help] Application crash Fabien MAHOT

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18428.54575.238202.690441@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=fabien.mahot@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.