Search Results

Search: Posts Made By: ph0enix
22,767
Posted By ph0enix
I tested the python script on a Mac OS-X system...
I tested the python script on a Mac OS-X system and to my surprise, it seemed to be utilizing both CPU cores while the script was executing. I couldn't tell you why but "top" showed CPU usage at...
22,767
Posted By ph0enix
Here's what I've got in python so far: ...
Here's what I've got in python so far:


import threading
import string
theVar = 1
class MyThread ( threading.Thread ):
def run ( self ):
global theVar
theVar = theVar + 1
...
22,767
Posted By ph0enix
It sure does. Neat trick! It's not exactly...
It sure does. Neat trick! It's not exactly suitable for my needs though.

I managed to create a multithreaded python script that roughly does what I need it to but it still uses only a single...
22,767
Posted By ph0enix
I have a pretty good idea of what they are. ...
I have a pretty good idea of what they are. Coding is another story.
22,767
Posted By ph0enix
The answer to the "why shell" question is simple:...
The answer to the "why shell" question is simple: I don't know the first thing about C. Another reason is portability. It's easier to test different systems if the program doesn't have to be...
22,767
Posted By ph0enix
Is there a way to make bash [or another shell] use all CPU cores to execute a single script?
I wrote a very simple script that matches combinations of alphabetic characters (1-5). I want to use it to test CPU speeds of different hardware/platforms. The problem is that on multi-core/processor...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 11:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy