In the App Engine java development server, how to simulate concurrent threads to ensure safety?

I read that the Google App Engine java development server only runs a servlet thread

I want to simulate two threads running in parallel so that I can pause one and observe the correct behavior of the other in debug mode

It seems that when I place a breakpoint and call it from two different tabs in chrome, only one of them will break

Is this possible? In other ways, can I simulate such a scenario to test thread safety?

(in particular, I try to observe the behavior of JDO transactions)

Attachment: I do have < threadsafe > true < / threadsafe > on appengine web In XML

Solution

OK The questions are all different It must be chrome. It doesn't like to send multiple requests to the same server when suspended Send one from chrome and another from Firefox After all, the Google App Engine java development server can handle concurrent requests from different threads What I read is wrong

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>