realtime design

Richard Jones rjones at ekit-inc.com
Sun Oct 13 19:33:26 EDT 2002


On Mon, 14 Oct 2002 8:18 am, Brian Quinlan wrote:
> Richard Jones wrote:
> > > But the variable timing of memory allocation/deallocation might be
> > > unacceptable.
> >
> > What do you mean by variable timing? If you avoid circular references,
> > CPython
> > (the C version, not the Java version) has deterministic memory
>
> handling.
>
> CPython uses malloc/free to allocate/deallocate Python objects. The
> malloc routine must search a free list for a memory block of sufficient
> size. So the timing of trivial Python operations can vary significantly,
> depending on the malloc implementation and the history of previous
> memory allocations/deallocations.

As other posters have pointed out, for Python to satisfy realitime 
constraints, the underling operating system must also satisfy those 
constraints.


   Richard





More information about the Python-list mailing list