Bug #374
closedWResource not parallel
0%
Description
The doc states that :
"Unlike event notifications to a Wt application, resource requests are not serialized, but are handled concurrently"
However a scoped_lock object is created a the beginning of
WResource::handle(WebRequest *webRequest, WebResponse *webResponse, Http::ResponseContinuation *continuation),
serializing concurrent call to a WResource.
Marc
Updated by Koen Deforche almost 14 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
Hey Marc,
The second lock grabs only a mutex protecting the single resource (from being deleted while being handled): the mutex is specific to a single resource. The application allows concurrent access to different resources, and in parallel with event notifications. I think the documentation should be updated to make that clear.
You can for example see how this concurrent access improves performance in the mandlebrot example, where the server is computing and serving the tiles in parallel.
Regards,
koen
Updated by Pieter Libin over 13 years ago
- Status changed from Resolved to Closed