Thanks for the answers guys. I basically just need to test that my concurrency mechanism is working. How can I do that without being able to spawn two threads simultaneously?
Regards, Elliott On Apr 20, 3:09 pm, Andy Freeman <[email protected]> wrote: > > Unfortunately I cant seem to get app engine to run two threads > > concurrently to simulate two users taking action at the same time. > > Are you concerned with the development server or the production > server? > > The development server is single threaded and there doesn't seem to be > any way to fix that. (You can run multiple instances, but each > instance will have its own datastore.) > > Application instances are, by design, single threaded. The production > server is supposed to fire up as many instances as needed - are you > not seeing that behavior? Note that the datastore actions of these > separate instances will be interleaved. Is that the problem that > you're trying to address? > > On Apr 20, 4:11 am, eli <[email protected]> wrote: > > > > > Hi guys, > > > I have built a program that is (hopefully) concurrency safe. I would > > like to test this thoroughly using a testing module that I have > > written. > > Unfortunately I cant seem to get app engine to run two threads > > concurrently to simulate two users taking action at the same time. > > > Currently I am using .start() on a number of threads, each of which > > should then go off and access certain datastructures to test their > > safety. Unfortunately I can only seem to get app engine to serve each > > threads requests, from start to finish, in the order they were > > created. > > > Could somebody please give me some pointers. Thanks for the help in > > advanced. > > > Regards, > >ElliottR --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
