Wesley13 Wesley13
2年前
.NET的命名空间
关于Namespace(命名空间)的使用在前面的程序中我们看到,我常用<%@ImportNamespace"System.Data"%,这是在引用M$为我们提供的Namespace,这和ASP不同的,我们在ASP.net必须先引用与我们操作有关的Namespace后才能使用相应的功能。其实说白了,一个Namespace;就是一个组件。这个是关
Stella981 Stella981
2年前
Linux的Namespace与Cgroups介绍
Namespace的概念LinuxNamespace是kernel的一个功能,它可以隔离一系列系统的资源,比如PID(ProcessID),UserID,Network等等。一般看到这里,很多人会想到一个命令chroot,就像chroot允许把当前目录变成根目录一样(被隔离开来的),Namesapce也可
Stella981 Stella981
2年前
Docker核心技术Namespace浅析
简介LinuxNamespace提供了一种内核级别隔离系统资源的方法,通过将系统的全局资源放在不同的Namespace中,来实现资源隔离的目的。不同Namespace的程序,可以享有一份独立的系统资源。目前Linux中提供了六类系统资源的隔离机制,分别是:Mount:隔离文件系统挂载点UTS:隔离主机
Wesley13 Wesley13
2年前
16进制显示文件内容
include <iostreaminclude <stdio.husing namespace std;define BUFF_SIZE 20int main (){FILE fp;fp  fopen("epp370p0190_0408.13
Stella981 Stella981
2年前
Codeforces 492A
include<iostreaminclude<cmathinclude<cstdlibinclude<algorithminclude<stringinclude<string.hinclude<cstringusing namespace 
Stella981 Stella981
2年前
Linux Network Namespace (netns) 详解
LinuxNetworkNamespace(netns)详解NetworkNamespace(以下简称netns)是Linux内核提供的一项实现网络隔离的功能,它能隔离多个不同的网络空间,并且各自拥有独立的网络协议栈,这其中便包括了网络接口(网卡),路由表,iptables
Wesley13 Wesley13
2年前
C#压缩解压缩文件(zip格式)
using System;using System.Collections.Generic;using System.IO;using ICSharpCode.SharpZipLib.Zip;namespace TestConsole{    internal class Prog
Wesley13 Wesley13
2年前
005.OpenShift访问控制
一Kubetclnamespace1.1namespace描述Kubernetesnamespace提供了将一组相关资源组合在一起的机制。在RedHatOpenShift容器平台中,project是一个带有附加注释的Kubernetesnamespace。namespace提供以下特性
Stella981 Stella981
2年前
C++11 thread mutex 我怎么感觉我被坑了。
二话不说,直接上代码了。include <threadinclude <iostreaminclude <mutexusing namespace std;volatile int shared_value  0;volatile int running_count  1
Stella981 Stella981
2年前
Docker安全
我们知道dockerrun命令可以用来运行容器。那运行这个命令后,Docker做了哪些具体的工作呢?具体如下:1.dockerrun命令初始化。2.Docker运行lxcstart来执行run命令。3.lxcstart在容器中创建了一组namespace和ControlGroups。namespace是隔离的第一