run two threads as a user

qingyu wang <[email protected]> Wed, 10 Sep 2014 22:48:50 +0000
Newsgroups gmane.comp.java.grinder.user
Message-ID <[email protected]>
Hi all,I would like to know is it possible to run two threads concurrently to simulate one user? I have read the FAQ, which said that typically one threads is a user. However, the web server that I need to load test against uses http long polling. A real user would have a loop sending http polling request in the background (to receive notification or just keep this user alive)  while sending other requests or just being idle. I have read this post:Emulating AJAX polling requesthttp://sourceforge.net/p/grinder/mailman/message/31636522/
If a subthread is called after the main thread, will they run at the same time or the main thread would wait for the sub to finish? Essentially I need to include this asynchronous polling request in my test to simulate a user. Please advice me if there is better way to do it.Thank you for your help!
Qingyu

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk

_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use