3 ms·
I don't see the problem here. You need to have serial access to the counter. You could use a single-threaded webserver but there is a lot more to that request t
by kevincox 6y ago
I don't see the problem here. You need to have serial access to the counter. You could use a single-threaded webserver but there is a lot more to that request than actually incrementing the counter. It still makes sense in most cases to use a threaded webserver and lock on incrementing the counter. (Especially if you are using a concurrent hashtable so that you can increment multiple counters in parallel)