0
votes
2answers
17 views

Play 2 sounds simultaneously with multiprocessing in python

I need to play 2 sounds simultaneously, with multiprocessing rather than threads, to see if it solves a problem where threads play the audio in sequence rather than in parallel. I am guessing it's due ...
0
votes
1answer
24 views

inserting data in database through thread

Hi I have client server architecture. 1. server script: -runs and listen to socket. -on receiving client response, a new thread is forked to handle the client data -each thread has to ...
0
votes
1answer
17 views

Call a twisted protocol method from another thread

I have made a Home Security program in Python that uses Raspberry Pi's GPIOs to sense movement and actuate the siren. The users activate/deactivate the system using a NFC Tag to a nfc reder connected ...
-1
votes
1answer
30 views

opening files in parallel using threading in Python

I'm fairly new to Python, with no experience with multi-threading, but I have some code that would benefit from the application of threads. I found a basic example and modified it with the intent of ...
1
vote
2answers
37 views

python multi thread to process file with fcntl flcok

I try to use python to handle text replace problem. There is a file of Little-endian UTF-16 format, I want to replace the ip address in this file. First, I read this file by line, then replace the ...
0
votes
0answers
21 views

Print multithread subprocess

Good day! I have a python script, it creates a file list and processes it in multiprocess.Pool.map and thread function. Thread function uses outside executable and calls it via subprocess.check_call. ...
1
vote
0answers
41 views

Can't get multiprocessing to run processes concurrently

The code below doesn't seem to run concurrently, and I'm not sure exactly why: def run_normalizers(config, debug, num_threads, name=None): def _run(): print('Started process for ...
3
votes
1answer
52 views

Read a file and do something, multithreading

This source is just an exemple: inputf = open('input', 'r') outputf = open('output', 'a') for x in inputf: x = x.strip('\n') result = urllib2.urlopen('http://test.com/'+x).getcode() ...
0
votes
0answers
17 views

Threading with Tk text widget

I'm trying to create an active notepad app in Tk - think google real-time search. I want to detect when someone writes 4 particular words in an editor. I started down the road of keeping track of ...
0
votes
1answer
24 views

Python's threading.local() isn't working for me

This is pretty simple: import threading as t t.local().x = 1 print t.local().x When I run it, I get this: Traceback (most recent call last): File "C:\Documents and ...
0
votes
1answer
32 views

get thread ID or name in python 2.6

I am trying to get thread ID or name in python 2.6 I follow examples but I get errors like global name 'currentThread' is not defined global name 'current_thread' is not defined (I tried both ...
0
votes
2answers
31 views

Python thread runs even after closing WxPython application

the following code takes screenshots and logs keystrokes and mouse movements. It uses wxpython as GUI framework. I'm using python threads for screenshot and logging service. But whenever I close the ...
0
votes
0answers
10 views

Neurosky Mindwave multiple connection with Python Neuropy

I'm trying to connect multiple Neurosky mindwave mobile headsets with python Neuropy module. Can I do with threads? if yes, how? It works fine with one port connection like below: from PyQt4.QtGui ...
0
votes
1answer
30 views

Socket program need an integer

I have a chat client and but when I run it I get an error like this: Traceback (most recent call last): File "C:\Users\Public\Documents\Programming\Chat Client\Chat Client.py", line 21, in ...
0
votes
1answer
16 views

Socket chat client error

I have made a chat server client but when I run it I get this error: Traceback (most recent call last): File "C:/Users/Public/Documents/Programming/Chat Client/Chat Client.py", line 21, in ...

1 2 3 4 5 159
15 30 50 per page