3.14.2 Multi-threaded Prolog
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
Packages
SWI-Prolog HTTP support
The HTTP server libraries
Running the server
Multi-threaded Prolog
http_server/2
http_server_property/2
http_workers/2
http_add_worker/2
http_stop_server/2
http_current_worker/2
http_spawn/2
Availability:
:- use_module(
library(http/thread_httpd)
).
http_current_worker
(
?Port, ?ThreadID
)
True if
ThreadID
is the identifier of a Prolog thread serving
Port
. This predicate is motivated to allow for the use of arbitrary interaction with the worker thread for development and statistics.