Limiting execution time of embedded Python

前端 未结 3 1670
滥情空心
滥情空心 2021-02-19 18:02

If I embed the Python interpreter in a C or C++ program, as in this example, is there any way to limit how long the interpreter runs for? Is there anything to stop the Python co

3条回答
  •  一个人的身影
    2021-02-19 18:31

    If You need control lag and jitter in some realtime system, embed "StacklessPython" - Python with support co-routines. Used in "Twisted Web Server".

提交回复
热议问题