推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
chu1337
V2EX  ›  Python

线程中再开线程会出现问题吗?

  •  
  •   chu1337 ·
    Q2h1Cg · Apr 2, 2015 · 6150 views
    This topic created in 4238 days ago, the information mentioned may be changed or developed.
    9 replies  •  2015-04-03 00:57:02 +08:00
    p1n3
    p1n3
    Apr 2, 2015 via iPhone❤️1
    1
    不会。不过还真没试过
    sujin190
    sujin190
    Apr 2, 2015❤️1
    2
    有区别么?主线程不是线程
    auxten
    auxten
    Apr 2, 2015❤️1
    3
    线程和线程都是对等的,所以没有问题
    phoeagon
    phoeagon
    Apr 2, 2015❤️1
    4
    主线程也是线程啊
    chu1337
    chu1337
    OP
    Apr 2, 2015
    5
    感谢诸位,理解了
    keniusahdu
    keniusahdu
    Apr 2, 2015
    6
    你吃的肉活着的时候也吃肉.
    patrickstar
    patrickstar
    Apr 2, 2015
    7
    这不会有问题,否则系统启动起来就只能有一个进程(或线程)
    suduo1987
    suduo1987
    Apr 2, 2015 via iPhone
    8
    除了同步和资源占用,不会有问题
    FanAndXinran
    FanAndXinran
    Apr 3, 2015
    9
    再开是没问题的
    本身进程会默认启动一个线程叫MainThread, 这个主线程又可以开启新的线程
    不过有个疑问,python的多线程也只能占用一个cpu吧,那只是处理I/O密集型的操作会有优势?
    还有什么应用场景?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   547 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 19:28 · PVG 03:28 · LAX 11:28 · JFK 14:28
    ♥ Do have faith in what you're doing.