Linux

linux多线程

1、进程与线程这是个老生常谈的话题,我们只需要记住:进程可是一个资源的基本单位,而线程是程序调度的基本单位,一个进程内部的线程之间共享进程获得的时间片。线程拥有自己的栈,因为线程有自己的局部变量,其他的资源(文件描述字,全局变量等)和其他线程共享。2、有关线程的函数intpthread_create(pthread_t*thread,pthread_attr_t*attr,void*(*start_routine)(void*),void*arg);参数说

系统 2019-08-12 01:32:49 1782

Linux

Linux Error: Rm: Cannot Remove DIRECTORY Is

ok,ifyouaregettingthiserror,justforceitwiththiscommand.letssayforexample,iamtryingtodeteleadirectorycalledinstallandinthisdirectory,ihavesomefile,sotoremovethewholethingjustrunthiscommand:rm-rfinstallLinuxError:Rm:CannotRemoveDIRE

系统 2019-08-12 09:27:08 1781