473,563 Members | 2,732 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Threading on an old machine

I have an application that put on an old machine with a fresh Xubuntu
installation (with Python 2.5). But I can't get the threading to work

The application was written on a combination of Windows XP and
OpenSuse and has been running without any problems using Eclipse/
Pydev. However, now that I try to run the application using IDLE it
just hangs. I have managed to track the point at which it hangs to
the following line:

for sitename in mysites:
log.info("defin e thread")
thread_list[search_engine]=threading.Thre ad(name=sitenam e,
target=myprocee dure, args=(sitename, ))
log.info("done" )
thread_list[search_engine].start()
log.info("Start ed")

It gets to the "done" and then hangs. It doesn't appear to get to
'myproceedure'.

The machine is an old Pentium II, with 256mb and 3gb spare on the HD.
It doesn't appear to be having any problems with the other scripts
I've ran.

ALJ
Nov 10 '08 #1
4 1337
Sorry ... that should be:

for sitename in mysites:
log.info("defin e thread")

thread_list[sitename]=threading.Thre ad(name=sitenam e,target=myproc eedure,
args=(sitename, ))
log.info("done" )
thread_list[sitename].start()
log.info("Start ed")
Nov 10 '08 #2
On 10 Nov, 11:07, Astley Le Jasper <Astley.lejas.. .@gmail.comwrot e:
Sorry ... that should be:

for sitename in mysites:
* * log.info("defin e thread")

thread_list[sitename]=threading.Thre ad(name=sitenam e,target=myproc eedure,
args=(sitename, ))
* * log.info("done" )
* * thread_list[sitename].start()
* * log.info("Start ed")
Ok ... I just tried running it in the terminal and it works ... so I
presume there must be an issue with IDLE?
Nov 10 '08 #3
Astley Le Jasper wrote:
I have an application that put on an old machine with a fresh Xubuntu
installation (with Python 2.5). But I can't get the threading to work

The application was written on a combination of Windows XP and
OpenSuse and has been running without any problems using Eclipse/
Pydev. However, now that I try to run the application using IDLE it
just hangs. I have managed to track the point at which it hangs to
the following line:

for sitename in mysites:
log.info("defin e thread")
thread_list[search_engine]=threading.Thre ad(name=sitenam e,
target=myprocee dure, args=(sitename, ))
log.info("done" )
thread_list[search_engine].start()
log.info("Start ed")

It gets to the "done" and then hangs. It doesn't appear to get to
'myproceedure'.
Since 'myproceedure' is before 'done', the above is unclear.

Nov 10 '08 #4
On 10 Nov, 16:20, Terry Reedy <tjre...@udel.e duwrote:
Astley Le Jasper wrote:
I have an application that put on an old machine with a fresh Xubuntu
installation (with Python 2.5). But I can't get the threading to work
The application was written on a combination of Windows XP and
OpenSuse and has been running without any problems using Eclipse/
Pydev. However, now that I try to run the application using IDLE it
just hangs. *I have managed to track the point at which it hangs to
the following line:
for sitename in mysites:
* * log.info("defin e thread")
* * thread_list[search_engine]=threading.Thre ad(name=sitenam e,
target=myprocee dure, args=(sitename, ))
* * log.info("done" )
* * thread_list[search_engine].start()
* * log.info("Start ed")
It gets to the "done" and then hangs. It doesn't appear to get to
'myproceedure'.

Since 'myproceedure' is before 'done', the above is unclear.
I included a log.info in myprocedure. However, it doesn't trigger
because the thread doesn't actually get to the myprocedure ... at
least with Idle anyway.
Nov 10 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

65
6683
by: Anthony_Barker | last post by:
I have been reading a book about the evolution of the Basic programming language. The author states that Basic - particularly Microsoft's version is full of compromises which crept in along the language's 30+ year evolution. What to you think python largest compromises are? The three that come to my mind are significant whitespace,...
6
2230
by: akash shetty | last post by:
hi, im developing a code which requires searching a large database(bioological) for certain patterns.the size of the file is 3.5GB . the search pattern is a ten letter string.the database consists of paragraphs. the code ive developed searches the data paragraphwise. (using xreadlines). but this takes an awful amt of time.(abt 7 mins) is...
1
2138
by: Lane LiaBraaten | last post by:
I am developing a GUI that uses multiple threading.Threads, and Queue.Queues for communicating between the threads, and threading.Timers for checking the queues. Everything works well (runs to completion and exits) on my RedHat7.3 machine, but it doesn't work (hangs like some thread or queue is blocking)on RH9. However, when I ssh into...
5
2387
by: Garry Hodgson | last post by:
a colleague of mine has seen an odd problem in some code of ours. we initially noticed it on webware, but in distilling a test case it seems to be strictly a python issue. in the real system, it manifests as webware just locking up, for no apparent reason, until we kill it. we've also had the python interpreter running webware die on...
77
5224
by: Jon Skeet [C# MVP] | last post by:
Please excuse the cross-post - I'm pretty sure I've had interest in the article on all the groups this is posted to. I've finally managed to finish my article on multi-threading - at least for the moment. I'd be *very* grateful if people with any interest in multi-threading would read it (even just bits of it - it's somewhat long to go...
1
2085
by: Carl Waldbieser | last post by:
I have been considering using Python and the Reportlab library for generating PDF reports for the back-end of a web based application. The application runs most of its background tasks on a dedicated server that is Windows based (Win2K or Win2k3). The program that launches the tasks requires a COM-based interface, so I wrote a Python COM...
2
1412
by: hecklar | last post by:
This is my first time posting here, so i apologize if i'm posting in the wrong subgroup or whatever, but here goes... I’m having a problem with threading and events (permissions?) in a VB.net Windows application (background service). I’m trying to write an application that processes files, launching a new thread for each file that is...
11
5002
by: Paul Sijben | last post by:
I am stumped by the following problem. I have a large multi-threaded server accepting communications on one UDP port (chosen for its supposed speed). I have been profiling the code and found that the UDP communication is my biggest drain on performance! Communication where the client and the server are on the same machine still takes 300ms...
126
6648
by: Dann Corbit | last post by:
Rather than create a new way of doing things: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2497.html why not just pick up ACE into the existing standard: http://www.cse.wustl.edu/~schmidt/ACE.html the same way that the STL (and subsequently BOOST) have been subsumed? Since it already runs on zillions of platforms, they have...
0
7664
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
7885
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7638
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6250
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3642
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
923
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.