摘要:
from greenlet import greenlet import time def t1(): while True: print("————A————") gr2.switch() time.sleep(3) def t2(): while True: print("————B————") 阅读全文
摘要:
Gunicorn 绿色独角兽'是一个Python WSGI UNIX的HTTP服务器。 是一个pre-fork worker的模型,从Ruby的独角兽(Unicorn )项目移植。 该Gunicorn服务器大致与各种Web框架兼容,只需非常简单的执行,轻量级的资源消耗,以及相当迅速,具有实现简单,轻 阅读全文