0
votes
1answer
20 views

Python Tkinter Multithreading functions

I am currently working on an Email sender and recieving program with the tkinter library from python. I am using the threading module to make the program refresh the unread emails every 60 seconds ...
2
votes
1answer
28 views

Need a thread-safe asynchronous message queue

I'm looking for a Python class (preferably part of the standard language, rather than a 3rd party library) to manage asynchronous 'broadcast style' messaging. I will have one thread which puts ...
0
votes
1answer
34 views

Running two while statements at same time with Threads and Queue

I am trying to run two or more while statements in functions at the same time with Threads and queueing. However i'm struggling to get my head around how the queues work and the proper syntax. OR ...
0
votes
0answers
9 views

Mandrill sends repeated emails with django mailsnake

I have a function that runs every hour with apscheduler, this verifies few conditions and according to this sends an email to an arrangement of emails from mailsnake import MailSnake mapi = ...
2
votes
2answers
44 views

experimenting with python threads, how to stop thread

watching David beazley's(http://www.dabeaz.com) video about python threads,I was trying out stuff with threads def countdown(n): while n > 0: if not n % 100000: print n ...
0
votes
0answers
20 views

Can't catch pickle error

I have a thread that constanlty waits for input via a socket. It receives things fine, but if I try to pickle.loads the string, then I receive an error. That would be an easy thing to catch, but this ...
0
votes
0answers
21 views

check dependency of 2 functions python

check dependency of 2 functions python. for example the result of one function is used as parameter in the or function. but the 2 function will not be process together. i am using parallel processing ...
2
votes
1answer
44 views

Python: Can I use class variables as thread locks?

I was thinking about using a class variable as a thread lock, since I don't like to define a lock within the global variables and also want to prevent deadlock. Does this actually work? Example: ...
0
votes
0answers
12 views

Bottle Web Framework: How to rerun the script for certain event

When run bottlepy using WSGI Server, I can restart the server by pressing ctrl+c and run the script one more time. However I want to do this automatically. So whenever files/directories added, ...
1
vote
4answers
41 views

Multithreaded Port Scanner

Yes, yes I know I could just use nmap but I want to try this out myself. I'm trying to write a threaded script to find open ports on a target IP address. This is what I have right now: import ...
2
votes
2answers
43 views

How to set memory limit for thread or process in python?

I'm writing program in Python which would be able to run untrusted python code in some kind of sandbox. So, I need a way to limit the amount of memory that untrusted code can allocate. At now I can ...
1
vote
0answers
38 views

CPU and GPU operations parallelization

I have an application that has 3 main functionalities which are running sequentially at the moment: 1) Loading data to memory and perform preprocesssing on it. 2) Perform some computations on the ...
0
votes
1answer
22 views

python thread exception cause stop the proccess

in below code if i change one of the url to something invalid the whole proccess will stop and i couldn't exit form terminal using ctrl+c . so my question is how should i handle exception in my main ...
0
votes
1answer
45 views

How to batch asynchronous web requests performed using a comprehension in python?

not sure if this is possible, spend some time looking at what seem like similar questions, but still unclear. For a list of website urls, I need to get the html as a starting point. I have a class ...
2
votes
2answers
43 views

Tkinter: How to use threads to preventing main event loop from “freezing”

I have a small GUI test with a "Start" button and a Progress bar. The desired behavior is: Click Start Progressbar oscillates for 5 seconds Progressbar stops The observed behavior is the "Start" ...

1 2 3 4 5 151
15 30 50 per page