自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

转载 Hard Link vs Soft Link

Unix files consist of two parts: the data part and the filename part.The data part is associated with something called an 'inode'. The inode carries the map of where the data is, the file permission

2016-01-13 02:30:26 537

转载 What is virtual memory, how is it implemented, and why do operating systems use it?

Real, or physical, memory exists on RAM chips inside the computer. Virtual memory, as its name suggests, doesn’t physically exist on a memory chip. It is an optimization technique and is implemented

2016-01-12 06:26:20 327

转载 What happens when you visit a website? What exactly goes on after you type a URL into a browser?

When you visit a website a lot of things happen behind the scenes that you may not be aware of. Let’s go through a list of those things in the order that they occur:1. When you visit a website, the

2016-01-12 04:19:50 471

转载 In C++, what’s the difference between an inline function and a macro?

This question was asked in interviews with both Apple and Intuit.The major difference between inline functions and macros is the way they are handled. Inline functions are parsed by the compiler, wh

2016-01-11 12:12:19 279

原创 Factory pattern

The Factory pattern suggests defining a creation services interface in a Factory base class, and implementing each "platform" in a separate Factory derived class.

2016-01-11 11:50:49 222

转载 Locking at an appropriate granularity

if multiple threads are waiting for the same resource(the cashier at the checkout), then if any thread holds the lock for longer than neces-sary, it will increase the total time spent waiting (don’t

2016-01-10 05:49:21 280

转载 Deadlock: the problem and a solution

Deadlock Problem:Each of a pair of threads needs to lock both of a pair of mutexes to perform some operation, and each thread has one mutex and is waitingfor the other. Neither thread can proceed, b

2016-01-10 03:08:35 251

转载 Memory : Stack vs Heap

Stack vs HeapSo far we have seen how to declare basic type variables such as int, double, etc, and complex types such as arrays and structs. The way we have been declaring them so far, with a synt

2016-01-06 04:41:52 220

转载 Memory Layout of C programs

Memory Layout of C ProgramsA typical memory representation of C program consists of following sections.1. Text segment2. Initialized data segment3. Uninitialized data segment4. Stack

2016-01-06 04:06:58 249

转载 C++ function overriding

If base class and derived class have member functions with same name and arguments. If you create an object of derived class and write code to access that member function then, the member function in

2016-01-06 04:06:18 293

转载 C++ Overloading (Operator and Function)

C++ allows you to specify more than one definition for a function name or an operator in the same scope, which is called function overloading and operator overloading respectively.An overloaded de

2016-01-06 04:03:27 320

转载 Cache (computing) && CPU Cache

In computing, a cache (/ˈkæʃ/ kash,[1] or /ˈkeɪʃ/ kaysh in AuE[2]) is a component that stores data so future requests for that data can be served faster; the data stored in a cache might be the resu

2016-01-04 07:50:33 493

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除