Multi-threading example
การเขียนโปรแกรมแบบ single process (ไม่มี thread)
#include <iostream>
#include <vector>
#include <thread>
using namespace std;
int main(){
while(1)
cout << "+" ;
while(1)
cout << "-" ;
return 0;
}
การเขียนโปรแกรมแบบ single thread

การเขียนโปรแกรมแบบ single thread แบบรับ argument

การเขียนโปรแกรมแบบ Multi thread

Last updated
Was this helpful?