some concepts

8 篇文章 0 订阅
 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

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》

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值