3.14.2 Multi-threaded Prolog
AllApplicationManualNameSummaryHelp

  • 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)).
Sourcehttp_add_worker(+Port, +Options)
Add a new worker to the HTTP server for port Port. Options overrule the default queue options. The following additional options are processed:
max_idle_time(+Seconds)
The created worker will automatically terminate if there is no new work within Seconds.