![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
面试
weixin_43068469
这个作者很懒,什么都没留下…
展开
-
进程线程区别
进程(Process)和线程(Thread)都是操作系统中的基本概念,它们之间有一些优劣和差异。进程基本介绍进程是程序执行时的一个实例,是系统进行资源分配的基本单位。所有与该进程有关的资源,都被记录在进程控制块(PCB)中。以表示该进程拥有这些资源或正在使用它们。另外,进程也是抢占处理机的调度单位,它拥有一个完整的虚拟地址空间。当进程发生调度时,不同的进程拥有不同的虚拟地址空间,而同一进程内...转载 2019-04-25 21:58:23 · 999 阅读 · 0 评论 -
递归,迭代,堆栈三种方式实现单链表反转(C++)
#include using namespace std;struct Node{int val;Node *next;};Node * creat_link(){Node *head=NULL;Node current=NULL;Node tmp=NULL;int val=0;int num_node=10;for(int i=0;i<num_node;i++)...转载 2019-04-23 21:41:06 · 343 阅读 · 0 评论 -
strstr实现
今天面试时遇到了,写一遍。#include <string.h>#include <iostream>using namespace std;//字串查找int mystrstr(char* str1, char* str2){ if (str1 == NULL || str2 == NULL || str1 == "" || str2 == "") {...原创 2019-04-23 21:48:49 · 444 阅读 · 0 评论