Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 146405 Details for
Bug 183710
Applications depending on fuse-python don't really work
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
small threading showcase
test2.py (text/plain), 947 bytes, created by
René 'Necoro' Neumann
on 2008-03-17 18:29:22 UTC
(
hide
)
Description:
small threading showcase
Filename:
MIME Type:
Creator:
René 'Necoro' Neumann
Created:
2008-03-17 18:29:22 UTC
Size:
947 bytes
patch
obsolete
>#!/usr/bin/python >import thread, threading, time, sys > >def print_ (): > sys.stdout.flush() > for i in range(10): > time.sleep(1) > print "mythread: ticking ", i > sys.stdout.flush() > raise NotImplementedError > >if len(sys.argv) < 2: > print "Running old thread module test" > thread.start_new_thread(print_,()) > time.sleep(1) > thread.start_new_thread(print_,()) > time.sleep(1) > thread.start_new_thread(print_,()) >elif len(sys.argv) == 2: > print "Running threading module test" > threading.Thread(target=print_).start() > time.sleep(1) > threading.Thread(target=print_).start() > time.sleep(1) > threading.Thread(target=print_).start() >else: > print "Running threading module test - threads are daemons" > t1 = threading.Thread(target=print_) > t1.setDaemon(True) > t1.start() > time.sleep(1) > t2 = threading.Thread(target=print_) > t2.setDaemon(True) > t2.start() > time.sleep(1) > t3 = threading.Thread(target=print_) > t3.setDaemon(True) > t3.start() > time.sleep(1)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 183710
:
123448
|
123576
|
123577
|
142372
| 146405 |
147413
|
149060