Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 25th, 2004, 11:08 PM
dbickett dbickett is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 34 dbickett User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
need multithreading help

First of all, I have searched the forums, and someone who asked a similar question was directed to the python reference documents. I have read them all several times, and have googled the topic many a time, but I still cannot get any sufficient direction in this python multithreading issue.

so, i'm writing a server in python. i understand from the reference documents that not only are the __init__() and run() methods the only methods you may override in the Threads class, but it is a good idea to do this. I'm simply asking for a code example of how to drop an object into a thread, write code for the thread to deal with that object, and start it without a second thought. All help is greatly appreciated. Thanks much,

Daniel

Reply With Quote
  #2  
Old July 26th, 2004, 02:29 AM
Grim Archon's Avatar
Grim Archon Grim Archon is offline
Mini me.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: Cambridge, UK
Posts: 783 Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 1488 Folding Title: Novice Folder
Time spent in forums: 3 Days 2 h 15 m 57 sec
Reputation Power: 7
Send a message via MSN to Grim Archon
There are many examples of the use of threading in the forum:

Try this one:
http://forums.devshed.com/t163168/s...light=threading

grim
__________________
*** Experimental Python Markup CGI V2 ***

Reply With Quote
  #3  
Old July 26th, 2004, 11:50 AM
dbickett dbickett is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 34 dbickett User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Thanks a ton I was beginning to lose hope; had resorted to a slideshow i found on the usenet groups.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > need multithreading help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT