some concepts
来源:互联网 发布:dota2 关闭比赛数据 编辑:程序博客网 时间:2024/05/16 11:01
resource
//----------
A resource is something that, once you're done using it, you need to return to the system. If you don't, bad things happen.
In C++ programs, the most commonly used resource is dynamically allocated memory (if you allocate memory and never deallocate it, you've got a memory leak), but memory is only one of many resources you must manage.
Other common resources include file descriptors, mutex locks, fonts and brushes in graphical user interfaces (GUIs), database connections, and network sockets.
Regardless of the resource, it's important that it be released when you're finished with it.
//===========================================================
what's port numbers?
//-----------------------------------
To request for service from a server, an obvious method is designating a server
by it's process ID and a host ID.
However, process IDs are assigned chronologically by process creation time, so the client
can't know in advance the process ID of a particular server process on a host.
To resolve this problem, the client uses a port number to specify a particular service,and
the server process created for that service can use that port number to handle the client's request.
//-----------------------
chronological: [ ˌ krɔnə'lɔdʒikəl ] arranged according to the order of time.
//=============================
Balance
//----------
A resource is something that, once you're done using it, you need to return to the system. If you don't, bad things happen.
In C++ programs, the most commonly used resource is dynamically allocated memory (if you allocate memory and never deallocate it, you've got a memory leak), but memory is only one of many resources you must manage.
Other common resources include file descriptors, mutex locks, fonts and brushes in graphical user interfaces (GUIs), database connections, and network sockets.
Regardless of the resource, it's important that it be released when you're finished with it.
//===========================================================
what's port numbers?
//-----------------------------------
To request for service from a server, an obvious method is designating a server
by it's process ID and a host ID.
However, process IDs are assigned chronologically by process creation time, so the client
can't know in advance the process ID of a particular server process on a host.
To resolve this problem, the client uses a port number to specify a particular service,and
the server process created for that service can use that port number to handle the client's request.
//-----------------------
chronological: [ ˌ krɔnə'lɔdʒikəl ] arranged according to the order of time.
//=============================
Balance
There are no perfect structure . There are only structure that try to balance the current cost and benefit.
Pattern is something that comes with both costs and benefits.You should find yourself using the ones that best fit the problem at hand. -----《Agile Software Development》
- some concepts
- Some Concepts
- Some concepts
- some concepts for b_adaptive
- Some RAC Concepts
- Some C++ Concepts
- Some JDeveloper Concepts and Tips
- Android Dev Intro - Some Concepts
- some concepts in LDD chapter 2
- Some concepts should understand in ROR
- Some Basic Concepts in Image Steganography
- 【PRML Read notes】绪论(some concepts)
- Definitions of some Basic Biology Concepts(Start with "GENE")
- Android Dev Intro - Some Concepts on Android Graphics Architecture
- Concepts
- some
- some
- some
- 用VB设计“投票评选”程序的简单方法
- java面试题--Jsp和servlet方面
- It's My Life BON JOVI
- 对一篇文章的留言
- [转载]程序员的十种级别
- some concepts
- JSP中的include的两种用法 (转发)
- 在上海为买房子而奋斗的同胞们----换种思维,你觉得如何?好好读下这篇文章!欢迎大家发表观点!
- Essential C++来了
- C++程序设计之四书五经(上)
- C++程序设计之四书五经(下)
- ASP教程:ASP基础 转
- 上网ing,又在大阪,汗……
- C++资源之不完全导引(上)