Multithreading in WSL2 kann nicht erreicht werdenC++

Programme in C++. Entwicklerforum
Anonymous
 Multithreading in WSL2 kann nicht erreicht werden

Post by Anonymous »

Ich versuche, das folgende C ++ Multi-Thread-Programm auf WSL2 auszuführen: < /p>

Code: Select all

#include 
#include
#define N 1024*1024*1024
#define num_threads 8
using namespace std;

long x[num_threads] = {0};

// thread function prototype
void* threadnfunc (void *);
void func (int);

int main() {
cout

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post