Multithreading safety simulation log in.
Requirements as follows, there are multiple accounts need to login to a web site, but only two servers, and how to use two servers login to the site and then keep alive for a week, any language Java and python, main is to realize the train of thought, a code is best, learned about the Java sandbox mechanism, but the feeling is too much trouble, and then is the ThreadLocal API, please send out the voice of your great god,