Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Stackless python does <em>not</em> make use of any kind of multi-core environment it runs on.<br> This is a common misconception about Stackless, as it allows the programmer to take advantage of thread-based programming. For many people these two are closely intertwined, but are, in fact two separate things.</p> <p>Internally Stackless uses a round-robin scheduler to schedule every <a href="http://www.stackless.com/wiki/Tasklets" rel="noreferrer">tasklet</a> (micro threads), but no tasklet can be run concurrent with another one. This means that if one tasklet is busy, the others must wait until that tasklet relinquishes control. By default the scheduler will not stop a tasklet and give processor time to another. It is the tasklet's responsibility to schedule itself back in the end of the schedule queue using Stackless.schedule(), or by finishing its calculations.</p> <p><strong>all tasklets are thus executed in a sequential manner</strong>, even when multiplpe cores are available.</p> <p>The reason why Stackless does not have multi-core support is because this makes threads a whole lot easier. And this is just what stackless is all about:</p> <p><a href="http://www.stackless.com/" rel="noreferrer">from the official stackless website</a></p> <blockquote> <p>Stackless Python is an enhanced version of the Python programming language. It allows programmers to reap the benefits of thread-based programming without the performance and complexity problems associated with conventional threads. The microthreads that Stackless adds to Python are a cheap and lightweight convenience which can if used properly, give the following benefits:</p> <ul> <li>Improved program structure.</li> <li>More readable code.</li> <li>Increased programmer productivity.</li> </ul> </blockquote> <p>Here is a <a href="http://www.stackless.com/pipermail/stackless/2007-August/001963.html" rel="noreferrer">link</a> to some more information about multiple cores and stackless. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload