User loginNavigation |
Trying to get embedded python co-routines to workSorry if this has been talked about before, but I can't seem to find any resources on this site or with Google anywhere... I'm trying to get embedded python co-routines to work, and thinking about what the best strategy would be, so I figured I'd ask if anyone had dealt with this before. Basically what I'm looking to accomplish is a bunch of separate interpreter states (or threads I guess, if I can get that to work elegantly) that I schedule myself (i.e. when a certain process gets a tick, I tell the python thread to do a tick of its execution), with many sequential blocking functions for each process. So basically I want to have concurrently: Process A trying to do actions P, Q, R where I schedule when each one gets a tick, and the responsibility for "am I done" checking is inside P, Q, etc, not in A or B This would be a C application, with A and B being Python scripts and P, Q, etc being Python extensions written in C, possibly with Python wrappers... Some ways I'm considering doing it: Does anyone have any experience with this or anything similar? I hope my descriptions are clear enough... Thanks in advance, Raoul By raoulvp at 2006-06-02 16:43 | LtU Forum | previous forum topic | next forum topic | other blogs | 5410 reads
|
Browse archives
Active forum topics |
Recent comments
27 weeks 2 days ago
27 weeks 2 days ago
27 weeks 2 days ago
49 weeks 3 days ago
1 year 1 week ago
1 year 3 weeks ago
1 year 3 weeks ago
1 year 5 weeks ago
1 year 10 weeks ago
1 year 10 weeks ago