It should be able to run std::thread. Make sure you have enough cores set in the simulation command. (E.g. -n 4)
Cheers, Dan On Fri, Jun 5, 2020 at 12:50 AM Taiyu Zhou via gem5-users < gem5-users@gem5.org> wrote: > Hi guys! > I am trying to run a Muti-thread program in SE mode. But It can’t work in > SE mode. It is gem5 se mode can’t support std::thread? > My program is simple: > " > void th(){ > printf("thread\n"); > > } > > int main(){ > std::thread t1(th); > std::thread t2(th); > t1.join();t2.join(); > printf("end\n"); > return 0; > } > “ > > And gem5 will report that > “ > terminate called after throwing an instance of 'std::system_error' > what(): Resource temporarily unavailable > “ > > Are there any method to solve this problem? > Thanks > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s