Special Control Functions tutorial
Control Web server threads Web server threads monitor

## Preliminaries

- The HTTP requests are processed by HTTP server threads.
- The HTTP threads are configurable in the INI file. Hence they are a limited number.
- A VSP execution can run in the background by using http_flush().
- Pending HTTP requests can be monitored (including the background tasks).
- Pending HTTP requests can be aborted with http_kill().

## Thread killing example

- Run the long_task.vsp to start a thread that takes a long time.
- This will start another thread to run vs_c_1_sample_1.vsp
- All pending tutorial HTTP requests will be listed.
- The long_task thread can then be killed by using the link.