Find the answer to your Linux question:
Results 1 to 4 of 4
Where as I am familiar with Linux, I have used it as a development environment instead of an embedded OS. I am used to small RTOSs such as ThreadX, IAR ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    2

    Using glib

    Where as I am familiar with Linux, I have used it as a development environment instead of an embedded OS. I am used to small RTOSs such as ThreadX, IAR PowerPack, Integrity, PSOS, and even VxWorks (not small, but more similar). So, what I "want" to do is write programs that are akin to what I am used to.

    This would be creating threads, having thread wait on events, process events, get/put messages on queues between threads, so on so forth. This is very easy, straight forward, and rather powerful in other RTOSs, but in Linux, it seems to be a foreign concept.

    I have found glib, which is vaguely familiar in this respect. I have been looking at the dox from gnome.org, but this documentation is VERY light on basic information. I simply cannot understand this stuff at a high level. This includes mainly the use of sources, main loops, the use of the GSourceFuncs, and basically all that surounds this. I have been using the dox to attempt to create a program to do this stuff, but these dox are so unclear on the basics, like how does all this stuff actually work, seems to be missing.

    Does anyone have any examples of this use, or know of any sources of information on this that would give me a lift?

    Maybe more of a basic questions is, if I just want some basic RTOS like functionality in Linux, what should I be using?

    Thanks in advance!

    -GZ

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    I assume you have looked at pthreads (posix threads)? I have programmed a lot in the QNX environment for RT applications, and pthreads is very straight-forward to use. An event-based environment is my standard melieu.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    May 2009
    Posts
    2
    Thank you for your reply. I really appreciate the time.

    -gz

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    As for your question about basic RTOS functionality, there are real-time linux variants available with more-or-less deterministic schedulers. As for Linux itself, my signature below says it all...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...