博文

目前显示的是 九月, 2025的博文

终端乱码问题解决方法

文件系统中的中文文件名确实是以 GBK 编码存储的,而您的终端使用的是 UTF-8 编码。现在,所有文件名都已成功转换为 UTF-8,并且可以被您的终端正确识别和显示。  [root@ali-ecs PlayWithDataStructureSourceCode]# ls ''$'\265\332''3'$'\325\302\317\337\320''Ա'$'\355'          ''$'\265\332''6'$'\325\302\312\367'        ''$'\265\332''9'$'\325\302\305\305\320\362' ''$'\265\332''4'$'\325\302''ջ'$'\323\353\266\323\301\320'  ''$'\265\332''7'$'\325\302''ͼ'              README.md ''$'\265\332''5'$'\325''´'$'\256'                          ''$'\265\332''8'$'\325''²'$'\351\325\322' [root@ali-ecs PlayWithDataStructureSourceCode]# convmv -f GBK -t UTF-8 -r ./* Starting a dry run without changes... mv "./��3�����Ա�/02���Ա���ʽ�洢_LinkList.c"      "./��3�����Ա�/02线性表链式存储_LinkL...

Process vs. Thread

图片
  A process is an executing instance of a program with its own memory and resources, while  a thread is the smallest unit of execution within a process that can run concurrently with other threads in the same process .  Processes are isolated with separate address spaces and require system-provided inter-process communication to share data, whereas threads share the process's memory and resources, allowing for faster communication and context switching.   Process vs. Thread Process: An independent program in execution.  Has its own separate memory address space.  Carries more state information and resources (like open files and system handles).  Data sharing requires Inter-Process Communication (IPC) mechanisms.  Considered a "heavyweight" unit of execution due to resource overhead for creation and context switching.  Thread: A subset of a process , executing within the process's context.  Shares the process's address space, memory, and ...