> For the complete documentation index, see [llms.txt](https://servelight2020.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://servelight2020.gitbook.io/docs/multiprocessing.md).

# Multiprocessing

## ForkingWSGIServer

A WSGI server that does forking.This class is identical to WSGIServer but handle each request in a new process using the ForkingMixIn. This is useful to handle web browsers pre-opening sockets, on which Server would wait indefinitely.

```python
from sl.server import make_server, ForkingWSGIServer
make_server("localhost", 8080, demo_app, ForkingWSGIServer)
```

open <http://localhost:8080> and see

you can do many requests to server.&#x20;

WSGIServer handles one by one

ThreadingWSGIServer handles all at once **asynchronously**.

ForkingWSGIServer handles all at once **asynchronously** using new process to each request.

{% hint style="warning" %}
Your OS ( Operating System ) should support forking.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://servelight2020.gitbook.io/docs/multiprocessing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
