You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
567 B
22 lines
567 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ObjectPool
|
|
{
|
|
/*
|
|
* 카테고리: 생성패턴
|
|
* 개요: 객체 생성에 리소스 소모가 커 그 자체가 프로그램의 성능에 영향을 미치는 경우, 미리 만들어두고 사용
|
|
* 객체 요청 시 Pool에 사용 가능한 객체가 있는지 확인하고 없는 경우에만 새로 객체를 생성
|
|
*/
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
Client.HowToUse();
|
|
Console.ReadKey();
|
|
}
|
|
}
|
|
}
|
|
|