synchronisation with QNX?

Hi!

I’m actually working with Windows NT4 but I got problems because it’s not
real time when I ask , for example, to read 64 bits from a file (fread)
every 5 microseconds…

Is it possible to do that with QNX?
Is there any C or C++ function that allow to synchronise a function in QNX??
Which compiler do I have to use? I heard about Watcom…

Sorry for my english and thanks for any help!

STARN

arno stoum wrote:

Hi!

I’m actually working with Windows NT4 but I got problems because it’s not
real time when I ask , for example, to read 64 bits from a file (fread)
every 5 microseconds…

Is this file you speak of on rotating media ? If so then it is unlikely
you are going to get the kind of performance you want through any kind
of filesystem. You might be on the virge of something that’s possible
if you are doing raw access to the disk (and you know the geometry of
the disk, and don’t expect to have 5 usec response when the head has to
move (seek times between adjacent tracks are measured in 100’s of
microseconds on the fastest hardware).


Is it possible to do that with QNX?

Certainly, the operating system itself would allow a 5 microsecond
deadline for copying 64 bits (8 bytes) on modern hardware. I don’t know
whether the filesystem would have sufficiently low overhead to do this
(assuming the hard drive itself was capable). I suspect you’d have to
write your own disk driver (which would certainly be much easier to do
on QNX than NT4.0 and friends).


Is there any C or C++ function that allow to synchronise a function in QNX??

QNX has synchronous message passing, but I’m not sure what you mean here ?

Which compiler do I have to use? I heard about Watcom…

On QNX4 you’d be using Watcom. On QNX6 you’d be using gcc.

Rennie

Thanks for all this Rennie!

Well now, I see gcc on the CD I downloaded in the repository directory.
But the package installer doesn’t want to open any packet!! Even if I ask it
to go search in the directory where I found all the gcc files… but I only
see files with extentions .qpm and qpk and I read I need to find a .qpr
file…

Just a little help for this one will be really welcome!!!

(sorry for my english…)

STARN

arno stoum wrote:

Thanks for all this Rennie!

Well now, I see gcc on the CD I downloaded in the repository directory.
But the package installer doesn’t want to open any packet!! Even if I ask it
to go search in the directory where I found all the gcc files… but I only
see files with extentions .qpm and qpk and I read I need to find a .qpr
file…

Are you trying to launch pkg-installer by clicking on a .qxx extension
in the file manager ? If so, this is not the way to do it. Simply
launch pkg-installer, and double click the CD repository. After this
everything should be intuitive (although don’t be surprised if your
perms are whacked after the install :frowning:

Rennie

that’s the first thing I did 2 days ago but when I clicked on the button, it
tells me it’s not the good URL so, I went to seewhat was on the CD and I
tried every possibility of URL. With the URL :file:////fs/cd0/, the package
manager ask me to select a package or a topic from the tree on the left but
there is no tree!! :frowning:

Maybe there is a problem with the file I downloaded…

STARN

arno stoum wrote:

that’s the first thing I did 2 days ago but when I clicked on the button, it
tells me it’s not the good URL so, I went to seewhat was on the CD and I
tried every possibility of URL. With the URL :file:////fs/cd0/, the package
manager ask me to select a package or a topic from the tree on the left but
there is no tree!! > :frowning:

There should be no need to type in a URL at any point.

from the prompt:

pkg-installer

or from the Launch menu:

->Software->Package Manager

That’s it !

Rennie

When I push the “QNX CDRom repository " button, a window prompt to tell me "
unable to acces repository” and “possible reason: this location does not
contain a repository please ensure the URL is correct.”

I push on the “add " button and I insert this URL: /fs/cd0/. I click “done”
and I click on the new line I just created.
At this moment, the window of the package manager change and in the
description field, I can read " please select a package or a topic from the
tree on the left” BUT there is no tree!!!

Maybe it’s not the right URL or I have to reinstall everything…

Again, sorry for my english, I hope this time it’s possible to understand
me…

Thanks

STARN

GOT IT!!!

AFTER 2 DAYS…

There is a problem with my laptop!!! I read that somebody else had the
same problem one year ago…
I just copied the files from the repository directory of the CDROM to my
hard drive and I pointed the packet installer to this directory. But I
could only read 635 files from the CD directory instead of more than 1000…
I hope what I need is in there…

I downloaded an other 422Mb CD and I’ll try to know if it’s a problem of CD
or drive…

Thanks anyway for your answers :slight_smile:

STARN

did u check the contents of the cd? does it contain the required repository files?


“arno stoum” <starn@yucom.be> wrote in message news:<aap8e0$b56$1@inn.qnx.com>…

When I push the “QNX CDRom repository " button, a window prompt to tell me "
unable to acces repository” and “possible reason: this location does not
contain a repository please ensure the URL is correct.”

I push on the “add " button and I insert this URL: /fs/cd0/. I click “done”
and I click on the new line I just created.
At this moment, the window of the package manager change and in the
description field, I can read " please select a package or a topic from the
tree on the left” BUT there is no tree!!!

Maybe it’s not the right URL or I have to reinstall everything…

Again, sorry for my english, I hope this time it’s possible to understand
me…

Thanks

STARN

I think it was a problem with my CD burner…
The first time I burned the ISP QNX image, I could only read 664 of the 996
files from the CD and the second time, 913…

I downloaded the missing files (mostly licenses) and, now, everything is
fine…heee, I mean,with this problem… :wink:

Thanks!

Starn