Protothreads: lightweight, stackless threads in C... what ab
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Posts: 979 from 2003/6/28
    http://www.sics.se/~adam/pt/

    Quote:


    Protothreads are extremely lightweight stackless threads designed for severely memory constrained systems such as small embedded systems or sensor network nodes. Protothreads provide linear code execution for event-driven systems implemented in C. Protothreads can be used with or without an underlying operating system.



    What about a MorphOS version? It can be interesting for the platform?
  • »26.02.05 - 01:30
    Profile
  • Cocoon
    Cocoon
    hnl_dk
    Posts: 47 from 2004/3/19
    From: Denmark
    Quote:


    timofonic wrote:
    http://www.sics.se/~adam/pt/

    Protothreads are extremely lightweight stackless threads designed for severely memory constrained systems such as small embedded systems or sensor network nodes. Protothreads provide linear code execution for event-driven systems implemented in C. Protothreads can be used with or without an underlying operating system.

    What about a MorphOS version? It can be interesting for the platform?


    And maybe even a better thing - I have to know, that I don't know if MorphOS has got it now... http://www.sics.se/~adam/uip/
    Quote:

    uIP is an implementation of the TCP/IP protocol stack intended for small 8-bit and 16-bit microcontrollers. It provides the necessary protocols for Internet communication, with a very small code footprint and RAM requirements - the uIP code size is on the order of a few kilobytes and RAM usage is on the order of a few hundred bytes.


    This would give you a TCP/IP Stack that is able to run on even 8bit embedded controllers... that might be able to get fast :-o
    Best regards,
    hnl_dk - Henning Nielsen Lund
  • »27.02.05 - 19:33
    Profile Visit Website
  • Butterfly
    Butterfly
    aliem
    Posts: 85 from 2003/12/11
    From: Italy
    The Aros project is currently porting LwIP ( http://www.sics.se/~adam/lwip/ ).

    To use treads you can see Ambient Sources: Every window is a tread :)
  • »27.02.05 - 21:30
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    About these light weight threads, they are mostly os independant, so you just have to type make, and here you go.

    i don't know how useful they are compared to existing solutions for us, though.
  • »28.02.05 - 00:05
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Posts: 979 from 2003/6/28
    Anyone tried Protothreads?
  • »01.03.05 - 19:41
    Profile