(½Ç½À11) ½Ã¹Ä·¹À̼Ç
³»¿ë: ±³Àç chap6¿¡ ÀÖ´Â ¿øÇüÅ¥¸¦ ÀÌ¿ëÇÑ ½Ã¹Ä·¹ÀÌ¼Ç ÇÁ·Î±×·¥À» ÀÛ¼ºÇÏ¿© ½ÇÇàÇϽÿÀ.
1) °í°´ÀÇ µµÂøÀ²À» Áõ°¡½ÃÄÑ ½ÇÇèÇÏ°í °á°ú¸¦ È®ÀÎÇϽÿÀ.
(arrival_prob = 0.9 ·Î ÇÏ¿© ½ÇÇèÇغ»´Ù.)
´ë±â½Ã°£°ú ´ë±â ÁßÀÎ °í°´¼ö¸¦ È®ÀÎÇÏ°í ¿¹ÃøÇÑ °á°ú¿Í ¸Â´ÂÁö È®ÀÎÇϽÿÀ.
2) °í°´ÀÇ µµÂøÀ²Àº ¿ø·¡´ë·Î ÇÏ°í ÃÖ´ë ¼ºñ½º½Ã°£À» 10ºÐÀ¸·Î ¼³Á¤ÇÏ¿© ½ÇÇèÇÏ°í °á°ú¸¦ È®ÀÎÇϽÿÀ.
(max_serv_time = 10 À¸·ÎÇÏ¿© ½ÇÇèÇغ»´Ù.)
´ë±â½Ã°£°ú ´ë±â ÁßÀÎ °í°´¼ö¸¦ È®ÀÎÇÏ°í ¿¹ÃøÇÑ °á°ú¿Í ¸Â´ÂÁö È®ÀÎÇϽÿÀ.
*) ¿©·¯°¡Áö ´Ù¸¥ °ªÀ¸·Î ¼³Á¤ÇÏ¸ç ½ÇÇèÇØ º¸½Ã¿À.
3) ½Ã¹Ä·¹À̼ÇÀº ½Ç¼¼°è¸¦ ¸ðµ¨¸µÇÏ°í ¸ðÀÇÇÏ¿© ¿øÇÏ´Â °á°ú¸¦ ¿¹ÃøÇÏ·Á´Â ¸ñÀûÀÌ ÀÖ´Ù.
À§ÀÇ ½Ã¹Ä·¹À̼ÇÀº ¾î¶² ¸ñÀû¿¡ ÀÀ¿ëÇÒ ¼ö ÀÖ´ÂÁö »ý°¢Çغ¸½Ã¿À.
(ÇϳªÀÇ ¿¹·Î, ÇÑ»ç¶÷ÀÇ ÀºÇà¿øÀÌ ¼ºñ½ºÇÏ´Â ÀºÇà Á¡Æ÷¿¡ ´ë±â °í°´À» À§ÇÏ¿© ¸î °³ÀÇ ÀÇÀÚ¸¦ ÁغñÇؾßÇϴ°¡¸¦
¸ðÀǸ¦ ÅëÇÏ¿© ¿¹ÃøÇÒ ¼ö ÀÖ´Ù.
´Ù¸¸, °í°´ µµÂøÀ²°ú 1ÀÎ´ç ¼ºñ½º½Ã°£ÀÌ ½ÇÁ¦¿Í À¯»çÇÏ°Ô ¸ðµ¨¸µµÇ¾î¾ß ¿¹Ãø°á°úÀÇ Á¤È®µµ°¡ ³ô¾ÆÁø´Ù.)
Ãß°¡:
1) ¼ºñ½ºÇÏ´Â ÀºÇà¿øÀÌ µÎ¸íÀÌ ÀÖ´Â »óȲÀ¸·Î ÇÁ·Î±×·¥À» º¯°æÇØ º¸½Ã¿À.
- ´ë±â queue´Â Çϳª¸¸ »ç¿ë
- ¼ºñ½º ½ÃÀÛ Ãâ·Â¹®¿¡ ÀºÇà¿ø 1ÀÌ ¼ºñ½ºÇÏ´ÂÁö ÀºÇà¿ø 2°¡ ¼ºñ½º ÇÏ´ÂÁö¸¦ ±¸ºÐÇÏ¿© Ãâ·ÂÇϽÿÀ.
(ÇÔ¼ö¸¦ Ãß°¡ÇÏÁö ¸»°í ±¸ÇöÇÒ °Í)
* ÀºÇà¿øÀ» µÎ ¸íÀ¸·Î ÇÏ¸é ´ë±â ½Ã°£°ú ´ë±â ÁßÀÎ °í°´¼ö°¡ ÁÙ¾îµå´ÂÁö È®ÀÎÇϽÿÀ.
2) ÀºÇà¿ø º°·Î ´ë±âÅ¥¸¦ °¢°¢ µÎ°í °í°´ÀÌ µé¾î¿À¸é °í°´ÀÌ ÀûÀº ´ë±âÅ¥¿¡ µé¾î°¡°Ô º¯°æÇϽÿÀ.
- ÀºÇà¿øº°·Î ÇØ´ç ´ë±âÅ¥ÀÇ ¼Õ´ÔÀ» ¹Þ°ÔÇϽÿÀ.
(ÇÔ¼ö¸¦ Ãß°¡Çؼ ±¸ÇöÇÒ °Í)
[±³Àç ÇÁ·Î±×·¥ Âü°í]
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap6/prog6-1.c
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap6/prog6-2.c
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap6/prog6-3.c
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap6/prog6-4.c
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap6/prog6-5.c
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap6/prog6-6.c
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap6/prog6-7.c
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap6/prog6-8.c
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap6/prog6-9.c
- http://itsys.hansung.ac.kr/lec/dstruct/htmls/source/chap6/prog6-10.c