dotnet / dotnet/docs

P/Invoke And Threads Resource Manager

Open
#49,112 0 comments 0 reactions 0 assignees View on GitHub
:watch: Not Triaged 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

Missing information

### Description

When learning C#, I attempted to compare the C++'s OpenMP and the C#’s Parallel.For. While calling the cpp_DLL in the program, it seemed like only one thread was running. I couldn’t find any articles discussing the relationship between C# P/Invoke and thread resource management. If such articles exist, could they be included in the relevant materials?

### Page URL

https://learn.microsoft.com/zh-cn/dotnet/standard/native-interop/pinvoke

### Content source URL

https://github.com/dotnet/docs/blob/main/docs/standard/native-interop/pinvoke.md

### Document Version Independent Id

931f4809-51f0-5b61-30ec-760bcfe44cb8

### Platform Id

d497c58e-9356-615c-76cf-7d7dd1c14ffb

### Article author

@jkoritzinsky

### Metadata

* ID: cf08b819-7446-dc6c-8040-d55ecccd317d
* PlatformId: d497c58e-9356-615c-76cf-7d7dd1c14ffb
* Service: **dotnet-fundamentals**

[Related Issues](https://github.com/dotnet/docs/issues?q=is%3Aissue+is%3Aopen+931f4809-51f0-5b61-30ec-760bcfe44cb8)

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.