Can I load a Linux-C thread in C#?

Kira Yamato 1 Reputation point
2022-10-14T08:22:10.44+00:00

Hi~

I have some old functions written in C on Linux and I am trying to transfer it to C# on Windows

The old module is encapsuled as a Linux C thread, which loops a core function periodically.

I wonder if there exist a method that I can load the C thread directly in C#, which would save me a lot of effort

Thank you~

Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2022-10-15T16:07:42.68+00:00

    If the C code contains Linux api calls, it will not run on windows.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.