
C++
放羊,放羊
We are who we are,eventualy!
展开
-
程序,进程,线程
程序:一个静态的指令序列。 进程:一个容器,其中包含了当前执行一个程序的特定实例时所用到的各种资源。 进程就是各种资源的集合,通常一个进程包含以下几种资源: 1)私有线性地址空间:这是进程可以使用的线性地址的种和,其中内核部分可能和其他进程共享。 2)可执行程序:也就是前面说的二进制序列,包含代码和数据。 3)一些已经获得的其他资源,如打开的文件、管道等。 4)进程的权限:进程的运行权限,...原创 2019-10-23 18:20:17 · 119 阅读 · 0 评论 -
C++拷贝构造,拷贝赋值,this指针
#ifndef _String_H_ #define _String_H_ #include <stdlib.h> #include <stdio.h> #include <cstring> #include <iostream> using std::cout; using std::endl; class String { public: S...原创 2019-09-24 12:54:21 · 227 阅读 · 0 评论 -
vs2015目录结构管理
原创 2019-10-02 19:30:29 · 452 阅读 · 0 评论 -
单例设计模式共享数据问题
mutex m_silver; std::once_flag m_flag; class Singleton { static void Create_Instance() { cout << "Create_Instance() ing!" << endl; m_S_ton = new Singleton(); static Singl...原创 2019-10-04 16:13:37 · 238 阅读 · 0 评论