Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
threading
#3
Hi. I just want 1-2-3 instances pop up in new terminal windows when i run this code.
Each folder would be watched in different terminals started at the very moment.
Now it's done by thee different scipts started one after each. Id like the editing in one place, and have the ability to configure the refresh time on each folder like this at the end of the script:
sc1 = Sc('first')
sc1.checkfornewwav(r'C:\testing\sc1', 10)
 
sc2 = Sc('second')
sc2.checkfornewwav(r'C:\testing\sc2', 12)

sc3 = Sc('third')
sc3.checkfornewwav(r'C:\testing\sc3', 15)
The first parameter is the folder to be watched, the second is the refresh time. Razz
I think threading would be nice to do this, since I would like to start the daemon on each folder a exactly the same time.
Reply


Messages In This Thread
threading - by kerzol81 - Mar-12-2017, 01:46 PM
RE: threading - by Ofnuts - Mar-12-2017, 05:38 PM
RE: threading - by kerzol81 - Mar-13-2017, 04:45 PM
RE: threading - by Ofnuts - Mar-13-2017, 09:04 PM
RE: threading - by kerzol81 - Mar-14-2017, 09:23 AM
RE: threading - by wavic - Mar-13-2017, 09:15 PM
RE: threading - by Ofnuts - Mar-14-2017, 11:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Concurrent futures threading running at same speed as non-threading billykid999 13 2,184 May-03-2023, 08:22 AM
Last Post: billykid999
  Tutorials on sockets, threading and multi-threading? muzikman 2 2,230 Oct-01-2021, 08:32 PM
Last Post: muzikman

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020