python Global Interpreter Lock GIL problem

后端 未结 2 942
轮回少年
轮回少年 2021-01-20 16:05

I want to provide a service on the web that people can test out the performance of an algo, which is written in python and running on the linux machine

basically wha

2条回答
  •  没有蜡笔的小新
    2021-01-20 17:01

    If you are opening each script by invoking a new process; you will not run afoul of the GIL. Each process gets its own interpreter and therefore its own interpreter lock.

提交回复
热议问题