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