25
votes
4answers
2k views

python vs bc in evaluating 6^6^6

I am evaluating the expression 6^6^6 using python and bc separately. The content of the python file is print 6**6**6. When I execute time python test.py, I get the output as real 0m0.067s ...
1
vote
1answer
306 views

Managing the output streams of many subprocesses with deadlocks

I have a Python script that does more or less this current_tasks = TaskManager() MAXPROCS = 8 while len(outstanding_tasks) > 0: if len(current_tasks.running) < MAXPROCS: ...
1
vote
1answer
2k views

How to check if process already exists in python script? [duplicate]

Possible Duplicate: Check for process already running in webfaction? How can I check if a process is already being run using Python + Django on WebFaction hosting? For example, my process ...