dotnet / dotnet/docs

Setting completionPortThreads with runtimeconfig.json

Open
#32,822 3 comments 0 reactions 1 assignee Claimed by @kouvel View on GitHub
dotnet-fundamentals/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
15h 21m
Merged PRs (30d)
370

Description

### Type of issue

Other (describe below)

### Description

**Issue description**

Hello,
The documentation for setting the ThreadPool MinThreads (https://learn.microsoft.com/en-us/dotnet/core/runtime-config/threading) mentions it's equivalent to ThreadPool.SetMinThreads method https://learn.microsoft.com/en-us/dotnet/api/system.threading.threadpool.setminthreads?view=net-7.0

This method has two parameters - int workerThreads, int completionPortThreads.

Is it possible to set the completionPortThreads with the runtime config? If so, how?

Alternatively, if the completionPortThreads setting does not matter in the new implementations of .NET, could the documents be updated with a remark about this parameter?

**Target framework**

- [x] .NET Core
- [ ] .NET Framework
- [ ] .NET Standard

### Page URL

https://learn.microsoft.com/en-us/dotnet/core/runtime-config/threading

### Content source URL

https://github.com/dotnet/docs/blob/live/docs/core/runtime-config/threading.md

### Document Version Independent Id

609c4ded-92cf-873b-26f0-a6f654e3728c

### Article author

@gewarren

### Metadata

* ID: dfd449c7-1c94-8e2b-7cdf-01e448d6cac3
* Service: **dotnet-fundamentals**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.