Implementing portable user thread API to embedded microcontroller application

This is a discussion on Implementing portable user thread API to embedded microcontroller application within the C Programming forums, part of the General Programming Boards category; hi... anyone know how to implement a threading system into real-time software for embedded device? is there any portable real-time ...

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    39

    Exclamation Implementing portable user thread API to embedded microcontroller application

    hi...

    anyone know how to implement a threading system into real-time software for embedded device?

    is there any portable real-time thread API that I can use?


    Thanks

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,823
    Mostly I just use an embedded operating system for the processor of choice.

    Tasks on an embedded OS have most of the same properties (eg access to shared memory) that threads do on standard desktop operating systems.

    Explain more of what you want.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Jul 2005
    Posts
    39
    well eventually I wanted to implement the thread "user thread" not real-time operating sytem thread API....

    and I'm facing difficulty because most thread API allow them to save their satate or context..... however the embedded PIC microcontroller have very limited amount of memory and stack ability........

    therefore I'm finding alternative if there any thread API that I can port to this particular device.....

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,823
    Well if you're that short of memory, then why on earth do you need threads?

    Threads imply an operating system and a thread API, both of which take up a fair amount of memory.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  5. #5
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    In a setup like this, you would be better off with an executive loop/state machine design.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Threading?
    By draggy in forum C++ Programming
    Replies: 5
    Last Post: 08-16-2005, 01:16 PM
  2. [code] Win32 Thread Object
    By Codeplug in forum Windows Programming
    Replies: 0
    Last Post: 06-03-2005, 04:55 PM
  3. SSH Hacker Activity!! AAHHH!!
    By Kleid-0 in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 03-06-2005, 03:53 PM
  4. Win32 Thread Object Model Revisted
    By Codeplug in forum Windows Programming
    Replies: 5
    Last Post: 12-15-2004, 08:50 AM
  5. Problem : Threads WILL NOT DIE!!
    By hanhao in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2004, 02:37 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21