JavaのHttpClientをマルチスレッドで使いたい。(HttpClient 4.2.5) 複数のスレッドから同じインスタンスを普通に使ってみる。(ダメな例) import org.apache.http.HttpEntity; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.util.EntityUtils; public class HttpTest extends Thread { private DefaultHttpClient client; public HttpTest(DefaultHttpClient client){ this.client = client; } p
![JavaのHttpClientをマルチスレッドで使う - せかいろぐ](https://cdn-ak-scissors.b.st-hatena.com/image/square/06a15c64ba0ceec233d86d71001ebb29a9dcbf5d/height=288;version=1;width=512/https%3A%2F%2Fcdn.blog.st-hatena.com%2Fimages%2Ftheme%2Fog-image-1500.png)