All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Saiful Khan <saiful.etc@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] process memory not locked
Date: Tue, 06 Mar 2007 18:56:54 +0100	[thread overview]
Message-ID: <45EDAB66.9070700@domain.hid> (raw)
In-Reply-To: <38b44d590703060949lfa70769na93c19abd2ff248f@domain.hid>

Saiful Khan wrote:
> Hello,
> 
> I have ported my normal GNU/Linux (Posix) application in Xenomai, and I
> have used Xenomai POSIX skin to do the same. In my application main()
> function is spawning a thread using
> pthread_attr_init()
> pthread_attr_setdetachstate()
> pthread_create()
> 
> But as soon as it spawn the thread the following message comes
> *Xenomai*: process *memory not locked* (missing mlockall?), and I do not
> get any message from that thread.
> 
> I have already  locked the paging  in main() as well as in the spawned
> thread using  mlockall(MCL_CURRENT | MCL_FUTURE). After google search I
> didnt found any solution to solve my problem.
> 
> 1. Please tell me the reason? Is there anything I am doing wrong while
> spawning thread?

Are you sure mlockall suceeded ? Check its return value to know.

> 2. What to do so that the thread also run in highest priority?

Use pthread_attr_setschedparam, or pthread_setschedparam.

-- 
                                                 Gilles Chanteperdrix


  reply	other threads:[~2007-03-06 17:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-06 17:49 [Xenomai-help] process memory not locked Saiful Khan
2007-03-06 17:56 ` Gilles Chanteperdrix [this message]
2007-03-06 18:04   ` Gilles Chanteperdrix
2007-03-06 18:59     ` Saiful Khan
2007-03-06 19:41       ` Gilles Chanteperdrix
     [not found]         ` <38b44d590703102107l159cda49rdf7ad7c1dc435b3@domain.hid>
2007-03-11 18:53           ` Gilles Chanteperdrix
2007-03-06 20:55       ` Dmitry Adamushko

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=45EDAB66.9070700@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=saiful.etc@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.