| Lockfile :: Simple. LockFile :: SimpleÀº °£´ÜÇÑ ÆÄÀÏ Àá±Ý ü°èÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
Lockfile :: Simple. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Raphael Manfredi
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~mrogaski/Log-Agent-0.307/Agent/Tag/Callback.pm
Lockfile :: Simple. ű×
Lockfile :: Simple. ¼³¸í
LockFile :: SimpleÀº °£´ÜÇÑ ÆÄÀÏ Àá±Ý ü°èÀÔ´Ï´Ù. LockFile :: SimpleÀº °£´ÜÇÑ ÆÄÀÏ Àá±Ý ÀåÄ¡ÀÔ´Ï´Ù. Synopsis »ç¿ë LockFile :: Simple QW (Àá±Ý TRYLock Àá±Ý ÇØÁ¦); # ±âº» ¼³Á¤ Àá±ÝÀ» »ç¿ëÇÏ¿© °£´ÜÇÑ Àá±Ý ( "/ ÀϺΠ/ ÆÄÀÏ") || "Àá±Û ¼ö ¾ø½À´Ï´Ù / / ÇÊ·»"; trylock ( "/ ÀϺΠ/ ÆÄÀÏ")À» Á¦¿ÜÇÏ°í "ÀÌ¹Ì Logedn"°æ°í; Àá±Ý ÇØÁ¦ ( "/ ÀϺΠ/ ÆÄÀÏ"); # »ç¿ëÀÚ Á¤ÀÇ Àá±Ý °ü¸®ÀÚ °³Ã¼ ºôµå $ lockmgr = LockFile :: Simple-> make (format => '% f.lck', -max => 20, -max => 1, -nfs => 1); $ lockmgr-> Àá±Ý ( "/ ÀϺΠ/ ÆÄÀÏ") || "Àá±Û ¼ö ¾ø½À´Ï´Ù / / ÇÊ·»"; $ lockmgr-> trylock ( "/ ÀϺΠ/ ÆÄÀÏ"); $ lockmgr-> Àá±Ý ÇØÁ¦ ( "/ ÀϺΠ/ ÆÄÀÏ"); $ lockmgr-> configure (-nfs => 0); # Àá±ÝÀ» »ç¿ëÇϸé $ LOCK = $ LOCKMGR-> Àá±Ý ( "/ ÀϺΠ/ ÆÄÀÏ"); $ LOCK-> ¸±¸®½º;ÀÌ °£´ÜÇÑ Àá±Ý ü°è´Â flock () ¶Ç´Â LOCKF ()¿Í °°Àº ÆÄÀÏ Àá±Ý ½Ã½ºÅÛ È£ÃâÀ» ±â¹ÝÀ¸·ÎÇÏÁö ¾ÊÁö¸¸ WRITE () ½Ã½ºÅÛ È£ÃâÀÇ ¿øÀÚ ¼º°ú °°Àº ±âº» ÆÄÀÏ ½Ã½ºÅÛ ÇÁ¸®¹ÌƼºê ¹× ¼Ó¼º¿¡ ÀÇÁ¸ÇÏÁö ¾Ê½À´Ï´Ù. ...¿¡ ƯÈ÷ NFS¸¦ ÅëÇØ ¸ðµç ÀÎÁ¾ Á¶°Ç¿¡¼ ¸éÁ¦µÇ´Â °ÍÀº ¾Æ´Õ´Ï´Ù. »ç¿ë µÈ ¾Ë°í¸®ÁòÀº ¾Ë°í¸®Áò ¼½¼Ç¿¡¼ ¾Æ·¡¿¡ ¼³¸íµÇ¾î ÀÖ½À´Ï´Ù. Àá±Ý ÀÛ¾÷À» »ç¿ëÀÚ Á¤ÀÇÇÏ¿© Àá±ÝÀ» ½ÃµµÇϱâ Àü¿¡ 30 ¹ø¸¶´Ù 5 Ãʸ¶´Ù ÇÑ ¹ø¾¿ Àá±ÝÀ» ½Ãµµ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
Lockfile :: Simple. °ü·Ã ¼ÒÇÁÆ®¿þ¾î