On Thu, Sep 07, 2000 at 06:58:48AM +0200, Paolo Mantegazza wrote:
> [EMAIL PROTECTED] wrote:
> - ..... do we want to bet how long will it take to see a real time
> memory manager in RTL?


There is no such thing as a dynamic real time memory manager.

It's been some years since RTL has been available and we have
many times had this silly discussion. 

The code for a simple version is trivial.
          

Step 1: write some module code:
In Linux init:
               ask for a soft RTL interrupt
               install a handler
                
         handler:
                  read from request queue (could be a fifo)
                  v = kmalloc( requested.space)
                  *requested.result = v;
                  pthread_wakeup_np(requested.thread);


Step 2: write some RTL thread code.

In  rtl  periodic thread;

           queue request.
           pthread_kill(pthread_linux(),kmalloc_irq);
           while( !request.result)
                 pthread_wait_np();


Step3 : receive Nobel Prize.


-- 
---------------------------------------------------------
Victor Yodaiken 
Finite State Machine Labs: The RTLinux Company.
 www.fsmlabs.com  www.rtlinux.com

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to