摘要:
#include <iostream> #include <unistd.h> int main(int argc, char *argv[]) { pid_t pid = fork(); if (pid > 0) { std::cout << "In parent process." << std 阅读全文
摘要:
#include <iostream> #include <thread> int main(int argc, char *argv[]) { std::thread t = std::thread([]() { std::cout << "Hello world!" << std::endl; 阅读全文