Skip to content

P/Invoke And Threads Resource Manager #49112

@xihxao

Description

@xihxao

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions