Re: [Libevent-users] multithreading problem

2012-12-16 Thread Nick Mathewson
On Sun, Dec 16, 2012 at 10:52 AM, Björn K. wrote: > Hello, > > I'm trying to write a simple https server which utilizes multiple cpu cores. > I call evthread_use_pthreads() and create several pthreads I can't tell without looking at the rest of the program, but are you sharing one event_base amon

Re: [Libevent-users] multithreading problem

2012-12-16 Thread Thomas Dial
Try JMeter. I believe AB has bugs. Sent from my iPhone On Dec 16, 2012, at 10:52 AM, Björn K. wrote: > Hello, > > I'm trying to write a simple https server which utilizes multiple cpu cores. > I call evthread_use_pthreads() and create several pthreads. My > acceptcb and the thread worker fun

[Libevent-users] multithreading problem

2012-12-16 Thread Björn K .
Hello, I'm trying to write a simple https server which utilizes multiple cpu cores. I call evthread_use_pthreads() and create several pthreads. My acceptcb and the thread worker functions are below. For some simple test cases it works. If I use a tool like apache ab for a perfomance test, I get so