[En-Nut-Discussion] Killing Processes and malloc

Ole Reinhardt ole.reinhardt at embedded-it.de
Thu Mar 13 13:17:08 CET 2008


Hi,

> To solve this I was thinking of adding a allocated mem list for each 
> process. This does bring a bit of overhead but I think is't a worth that 
> price. The root of the list would be in NUTTHREADINFO. If a process gets 
> kill you just have to work along this list and free the mem. On an atmel 
> this will cost you 2 Bytes per process 2,5 Bytes per alloc. (I'd align 
> the blocks to a word and then use 16bit pointers.) (BTW: It should be 
> "long word" in heap.c:183)

For me this sounds quite interesting. Especialy I'm interested in the
way you start other applications at runtime. How do you solve the
linking problem? Are thos "processes" always complete instances of a
NutOS runtime?

> Of course I'd implement this with ifdefs. Is there any interest in 
> adding this to the trunk. Or has anyone got a better idea?

Yes I think this could be quite interesting!

Cheers,

Ole

-- 
 _____________________________________________________________
|                                                             |
| Embedded-IT          Hard- und Softwarelösungen             |
|                                                             |
| Ole Reinhardt        Tel. / Fax:        +49 (0)271  7420433 |
| Luisenstraße 29      Mobil:             +49 (0)177  7420433 |
| 57076 Siegen         eMail:    ole.reinhardt at embedded-it.de |
| Germany              Web:         http://www.embedded-it.de |
|                      UstID / VAT:       DE198944716         |
|_____________________________________________________________|




More information about the En-Nut-Discussion mailing list