Python Forum
starting a process every 10 seconds
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
starting a process every 10 seconds
#8
ok, i downloaded the book in PDF format, which is convenient for me. but i am still thinking about the events project. i originally was planning to do this in C and then in Pike. so now i want to do it in Python. i can see how this could be greatly advantaged by semaphores.

the big idea is that all the waiting is merged into one method, events.next() which waits until the next event, whatever that is. there will need to be a variety of event classes, methods to interface with each class, and a means to create and add on new event classes. one built-in event class will be event.timer which defines events that will happen at specific times (and dates), absolute (at 18:00:00 today if not past it, already) and relative (10 seconds from now, or at the next hour). input and output events will also be available. input events can be defined as data is available to read or the data has already been read (and is provided by an appropriate interface). signals will make up another class of events. handling events of child process state changes (stop, continue, exit) will also be included. more may be added either as built-in events or as add-on event classes (the instances events.register() themselves as an event handler).
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
starting a process every 10 seconds - by Skaperen - Dec-29-2017, 07:52 AM
RE: starting a process every 10 seconds - by Skaperen - Dec-31-2017, 03:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with module time and leap seconds Pedroski55 3 2,076 Oct-07-2022, 11:27 PM
Last Post: Pedroski55
  Store variable data and display sum after 60 seconds the_dude 11 5,571 Dec-16-2021, 07:07 PM
Last Post: deanhystad
  How to calculate time difference between each row of dataframe in seconds Mekala 1 3,601 Jul-16-2020, 12:57 PM
Last Post: Larz60+
  Need to add hours min and seconds tester_V 5 4,264 Jun-02-2020, 05:29 PM
Last Post: tester_V
  Can't substract seconds from time Raj_Kumar 1 2,439 Apr-15-2020, 02:47 AM
Last Post: bowlofred
  How to calculate time in seconds rajeshE 1 2,772 Feb-15-2020, 11:07 PM
Last Post: Larz60+
  how to stop and start a script for 30 seconds laspaul 9 11,438 Jan-16-2020, 02:13 PM
Last Post: laspaul
  Convert HH:MM:SS to seconds RavCOder 4 12,532 Nov-26-2019, 03:46 PM
Last Post: DeaD_EyE
  How to sharing object between multiple process from main process using Pipe Subrata 1 4,481 Sep-03-2019, 09:49 PM
Last Post: woooee
  pyjama - frame every x seconds? MuntyScruntfundle 2 3,120 Jan-18-2019, 05:18 PM
Last Post: MuntyScruntfundle

Forum Jump:

User Panel Messages

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