• SubProcess or threading???

    From Rick Christian@1:135/377 to All on Tue Jan 29 19:22:41 2019
    .start() sends that off to do its part of the task.. as
    more data comes in.. its not blocked/lock waiting for os.system() to complete or what ever..


    The more and more I look at stuff on threads it doesn't appear that its the solution as they can't be dynamically created, at least in Python, and no changing to C/C++ is not an option, (also note this is PYTHON 2.7 and changing to 3.x is not an option even its its the solution here.)

    So hints, pointers to something that outlines threading better, or hints, or ideas...

    Maybe subprocess is the answer v. threading? ? ??

    I've looked over some things for both and not seeing the forest for the trees here...

    Just don't want the receiving loop to be locked/blocked while other tasks are doen with the received data... these tasks such as storing to REMOTE SQL, emails, could have transient delays that block/locks of the rx loop will cause missed data...

    I'd love any input, hints, guideance etc..

    Thanks!


    Rick


    ... NOprah!
    --- GoldED+/LNX 1.1.5-b20161221
    * Origin: Vina's Talos Moon Base Alpha (1:135/377)
    the next part of the solution??? ?
    ? ?

    With put() etc.. but I am thinking I am going to run into the same error/limitation of Python again...

    Maybe subprocess is the solution? ? ? ? ?

    I am not sure....

    The receiving loop will run 24/7/365, it never stops reciving data.. it should log, process, store, alert based on criteria in the program as needed but its not a finite set of data.. I've got basically 5 YEARS on stored right now...the
    data is not really import, nor is the source.. I've got it all working quite well.. hums along... for that part... I already use subprocess as part of the receiver loop to get in the data via my source.. ha sto receive it, decode it, and pyton ingests it and process it (this is where the existing subprocess comes in, it starts 2 sub processes to do this..)

    What I am looking to do is


    def Alert
    alertMe

    def StoreSQL
    storeDatatoSQL

    de EmailAlert
    email