《宁海帽峰山灵峰寺楹联》(第一稿)

阿弥陀佛舒老师好!
那麻烦您结合山僧海通来宁海桃源街道泉水帽(妙)峰山灵峰寺快十年苦修~多找几个名家多作几幅对子或写作一下可做天王殿及大雄宝殿各尊佛菩萨前的抱对好吗?
海通

(一)
《题宁海妙峰山灵峰禅寺》
菩萨陪仙翁弘法,佛道双修,妙妙妙妙;
峰头矗宝塔凌云,金鸡独立,高高高高。
2014.10.4.14:58

(二)
《嵌“海通”法师名号》
花开五叶,普渡众生,般若船中离苦海;
面壁十年,终成正果,菩提树下证圆通。

【注】一花开五叶:
解释:一花:佛教传入我国后,禅宗以达摩为祖,称“一花”;五叶:佛教发展演变的五个流派:伪仰、临济、曹洞、法眼、云门。
出处:《六祖大师法宝坛经》“付嘱第十”:“吾本来兹土,传法救迷情。一花开五叶,结果自然成。”
同时也有人称一花开五叶是指自达摩禅师东渡传道以来历经慧可、僧璨、道信、弘忍、惠能六代方使得禅宗成为中国佛教第一大宗。
【注】般若船:
般若智慧

http://segmentfault.com/bookmark/1230000002190205-2014-11-20
http://segmentfault.com/bookmark/1230000002190193-2014-11-20
http://segmentfault.com/bookmark/1230000002190152-2014-11-20
http://segmentfault.com/bookmark/1230000002190135-2014-11-20
http://segmentfault.com/bookmark/1230000002190120-2014-11-20
http://segmentfault.com/bookmark/1230000002190105-2014-11-20
http://segmentfault.com/bookmark/1230000002190088-2014-11-20
http://segmentfault.com/bookmark/1230000002190076-2014-11-20
http://segmentfault.com/bookmark/1230000002190061-2014-11-20
http://segmentfault.com/bookmark/1230000002190046-2014-11-20
http://segmentfault.com/bookmark/1230000002190031-2014-11-20
http://segmentfault.com/bookmark/1230000002190019-2014-11-20
http://segmentfault.com/bookmark/1230000002190005-2014-11-20
http://segmentfault.com/bookmark/1230000002189990-2014-11-20
http://segmentfault.com/bookmark/1230000002189978-2014-11-20
http://segmentfault.com/bookmark/1230000002189966-2014-11-20
http://segmentfault.com/bookmark/1230000002189956-2014-11-20
http://segmentfault.com/bookmark/1230000002189943-2014-11-20
http://segmentfault.com/bookmark/1230000002189929-2014-11-20
http://segmentfault.com/bookmark/1230000002189917-2014-11-20
http://segmentfault.com/bookmark/1230000002189907-2014-11-20
http://segmentfault.com/bookmark/1230000002189885-2014-11-20
http://segmentfault.com/bookmark/1230000002189875-2014-11-20
http://segmentfault.com/bookmark/1230000002189863-2014-11-20
http://segmentfault.com/bookmark/1230000002189851-2014-11-20
http://segmentfault.com/bookmark/1230000002189840-2014-11-20
http://segmentfault.com/bookmark/1230000002189827-2014-11-20
http://segmentfault.com/bookmark/1230000002189815-2014-11-20
http://segmentfault.com/bookmark/1230000002189804-2014-11-20
http://segmentfault.com/bookmark/1230000002189792-2014-11-20
http://segmentfault.com/bookmark/1230000002189779-2014-11-20
http://segmentfault.com/bookmark/1230000002189774-2014-11-20
http://segmentfault.com/bookmark/1230000002189755-2014-11-20
http://segmentfault.com/bookmark/1230000002189744-2014-11-20
http://segmentfault.com/bookmark/1230000002189732-2014-11-20
http://segmentfault.com/bookmark/1230000002189721-2014-11-20
http://segmentfault.com/bookmark/1230000002189711-2014-11-20
http://segmentfault.com/bookmark/1230000002189701-2014-11-20
http://segmentfault.com/bookmark/1230000002189690-2014-11-20
http://segmentfault.com/bookmark/1230000002189677-2014-11-20
http://segmentfault.com/bookmark/1230000002189653-2014-11-20
http://segmentfault.com/bookmark/1230000002189641-2014-11-20
http://segmentfault.com/bookmark/1230000002189628-2014-11-20
http://segmentfault.com/bookmark/1230000002189616-2014-11-20
http://segmentfault.com/bookmark/1230000002189605-2014-11-20
http://segmentfault.com/bookmark/1230000002189591-2014-11-20
http://segmentfault.com/bookmark/1230000002189582-2014-11-20
http://segmentfault.com/bookmark/1230000002189568-2014-11-20
http://segmentfault.com/bookmark/1230000002189551-2014-11-20
http://segmentfault.com/bookmark/1230000002189535-2014-11-20
http://segmentfault.com/bookmark/1230000002189522-2014-11-20
http://segmentfault.com/bookmark/1230000002189512-2014-11-20
http://segmentfault.com/bookmark/1230000002189500-2014-11-20
http://segmentfault.com/bookmark/1230000002189485-2014-11-20
http://segmentfault.com/bookmark/1230000002189479-2014-11-20
http://segmentfault.com/bookmark/1230000002189459-2014-11-20
http://segmentfault.com/bookmark/1230000002189359-2014-11-20
http://segmentfault.com/bookmark/1230000002189345-2014-11-20
http://segmentfault.com/bookmark/1230000002189329-2014-11-20
http://segmentfault.com/bookmark/1230000002189304-2014-11-20
http://segmentfault.com/bookmark/1230000002189291-2014-11-20
http://segmentfault.com/bookmark/1230000002189275-2014-11-20
http://segmentfault.com/bookmark/1230000002189262-2014-11-20
http://segmentfault.com/bookmark/1230000002189248-2014-11-20
http://segmentfault.com/bookmark/1230000002189228-2014-11-20
http://segmentfault.com/bookmark/1230000002189212-2014-11-20
http://segmentfault.com/bookmark/1230000002189195-2014-11-20
http://segmentfault.com/bookmark/1230000002189179-2014-11-20
http://segmentfault.com/bookmark/1230000002189166-2014-11-20
http://segmentfault.com/bookmark/1230000002189150-2014-11-20
http://segmentfault.com/bookmark/1230000002189137-2014-11-20
http://segmentfault.com/bookmark/1230000002189122-2014-11-20
http://segmentfault.com/bookmark/1230000002189108-2014-11-20
http://segmentfault.com/bookmark/1230000002189093-2014-11-20
http://segmentfault.com/bookmark/1230000002189076-2014-11-20
http://segmentfault.com/bookmark/1230000002189063-2014-11-20
http://segmentfault.com/bookmark/1230000002189047-2014-11-20
http://segmentfault.com/bookmark/1230000002189032-2014-11-20
http://segmentfault.com/bookmark/1230000002189005-2014-11-20
http://segmentfault.com/bookmark/1230000002188990-2014-11-20
http://segmentfault.com/bookmark/1230000002188977-2014-11-20
http://segmentfault.com/bookmark/1230000002188967-2014-11-20
http://segmentfault.com/bookmark/1230000002188946-2014-11-20
http://segmentfault.com/bookmark/1230000002188931-2014-11-20
http://segmentfault.com/bookmark/1230000002188918-2014-11-20
http://segmentfault.com/bookmark/1230000002188905-2014-11-20
http://segmentfault.com/bookmark/1230000002188890-2014-11-20
http://segmentfault.com/bookmark/1230000002188876-2014-11-20
http://segmentfault.com/bookmark/1230000002188863-2014-11-20
http://segmentfault.com/bookmark/1230000002188851-2014-11-20
http://segmentfault.com/bookmark/1230000002188836-2014-11-20
http://segmentfault.com/bookmark/1230000002188824-2014-11-20
http://segmentfault.com/bookmark/1230000002188809-2014-11-20
http://segmentfault.com/bookmark/1230000002188792-2014-11-20
http://segmentfault.com/bookmark/1230000002188779-2014-11-20
http://segmentfault.com/bookmark/1230000002168393-2014-11-20
http://segmentfault.com/bookmark/1230000002168390-2014-11-20
http://segmentfault.com/bookmark/1230000002168384-2014-11-20
http://segmentfault.com/bookmark/1230000002168382-2014-11-20
http://segmentfault.com/bookmark/1230000002168379-2014-11-20
http://segmentfault.com/bookmark/1230000002168375-2014-11-20
http://segmentfault.com/bookmark/1230000002168372-2014-11-20
http://segmentfault.com/bookmark/1230000002168369-2014-11-20
http://segmentfault.com/bookmark/1230000002168367-2014-11-20
http://segmentfault.com/bookmark/1230000002168364-2014-11-20
http://segmentfault.com/bookmark/1230000002168360-2014-11-20
http://segmentfault.com/bookmark/1230000002168352-2014-11-20
http://segmentfault.com/bookmark/1230000002168348-2014-11-20
http://segmentfault.com/bookmark/1230000002168345-2014-11-20
http://segmentfault.com/bookmark/1230000002168341-2014-11-20
http://segmentfault.com/bookmark/1230000002168337-2014-11-20
http://segmentfault.com/bookmark/1230000002168332-2014-11-20
http://segmentfault.com/bookmark/1230000002168330-2014-11-20
http://segmentfault.com/bookmark/1230000002168326-2014-11-20
http://segmentfault.com/bookmark/1230000002168321-2014-11-20
http://segmentfault.com/bookmark/1230000002168318-2014-11-20
http://segmentfault.com/bookmark/1230000002168309-2014-11-20

http://segmentfault.com/bookmark/1230000002168303-2014-11-20
http://segmentfault.com/bookmark/1230000002168298-2014-11-20
http://segmentfault.com/bookmark/1230000002168293-2014-11-20
http://segmentfault.com/bookmark/1230000002168284-2014-11-20
http://segmentfault.com/bookmark/1230000002168280-2014-11-20
http://segmentfault.com/bookmark/1230000002168276-2014-11-20
http://segmentfault.com/bookmark/1230000002168268-2014-11-20
http://segmentfault.com/bookmark/1230000002168264-2014-11-20
http://segmentfault.com/bookmark/1230000002168259-2014-11-20
http://segmentfault.com/bookmark/1230000002168253-2014-11-20
http://segmentfault.com/bookmark/1230000002168249-2014-11-20
http://segmentfault.com/bookmark/1230000002168245-2014-11-20
http://segmentfault.com/bookmark/1230000002168242-2014-11-20
http://segmentfault.com/bookmark/1230000002168238-2014-11-20
http://segmentfault.com/bookmark/1230000002168234-2014-11-20
http://segmentfault.com/bookmark/1230000002168228-2014-11-20
http://segmentfault.com/bookmark/1230000002168224-2014-11-20
http://segmentfault.com/bookmark/1230000002168218-2014-11-20
http://segmentfault.com/bookmark/1230000002168210-2014-11-20
http://segmentfault.com/bookmark/1230000002168206-2014-11-20
http://segmentfault.com/bookmark/1230000002168202-2014-11-20
http://segmentfault.com/bookmark/1230000002168197-2014-11-20
http://segmentfault.com/bookmark/1230000002168194-2014-11-20
http://segmentfault.com/bookmark/1230000002168037-2014-11-20
http://segmentfault.com/bookmark/1230000002168033-2014-11-20
http://segmentfault.com/bookmark/1230000002168027-2014-11-20
http://segmentfault.com/bookmark/1230000002168022-2014-11-20
http://segmentfault.com/bookmark/1230000002168021-2014-11-20
http://segmentfault.com/bookmark/1230000002168014-2014-11-20
http://segmentfault.com/bookmark/1230000002168011-2014-11-20
http://segmentfault.com/bookmark/1230000002168006-2014-11-20
http://segmentfault.com/bookmark/1230000002167999-2014-11-20
http://segmentfault.com/bookmark/1230000002167996-2014-11-20
http://segmentfault.com/bookmark/1230000002167990-2014-11-20
http://segmentfault.com/bookmark/1230000002167982-2014-11-20
http://segmentfault.com/bookmark/1230000002167974-2014-11-20
http://segmentfault.com/bookmark/1230000002167971-2014-11-20
http://segmentfault.com/bookmark/1230000002167960-2014-11-20
http://segmentfault.com/bookmark/1230000002167955-2014-11-20
http://segmentfault.com/bookmark/1230000002167950-2014-11-20
http://segmentfault.com/bookmark/1230000002167944-2014-11-20
http://segmentfault.com/bookmark/1230000002167941-2014-11-20
http://segmentfault.com/bookmark/1230000002167937-2014-11-20
http://segmentfault.com/bookmark/1230000002167932-2014-11-20
http://segmentfault.com/bookmark/1230000002167928-2014-11-20
http://segmentfault.com/bookmark/1230000002167924-2014-11-20
http://segmentfault.com/bookmark/1230000002167920-2014-11-20
http://segmentfault.com/bookmark/1230000002167916-2014-11-20
http://segmentfault.com/bookmark/1230000002167911-2014-11-20
http://segmentfault.com/bookmark/1230000002167904-2014-11-20
http://segmentfault.com/bookmark/1230000002167900-2014-11-20
http://segmentfault.com/bookmark/1230000002167896-2014-11-20
http://segmentfault.com/bookmark/1230000002167892-2014-11-20
http://segmentfault.com/bookmark/1230000002167888-2014-11-20
http://segmentfault.com/bookmark/1230000002167879-2014-11-20
http://segmentfault.com/bookmark/1230000002167875-2014-11-20
http://segmentfault.com/bookmark/1230000002167863-2014-11-20
http://segmentfault.com/bookmark/1230000002167858-2014-11-20
http://segmentfault.com/bookmark/1230000002167851-2014-11-20
http://segmentfault.com/bookmark/1230000002167847-2014-11-20
http://segmentfault.com/bookmark/1230000002167842-2014-11-20
http://segmentfault.com/bookmark/1230000002167839-2014-11-20
http://segmentfault.com/bookmark/1230000002167832-2014-11-20
http://segmentfault.com/bookmark/1230000002167827-2014-11-20
http://segmentfault.com/bookmark/1230000002167823-2014-11-20
http://segmentfault.com/bookmark/1230000002167817-2014-11-20
http://segmentfault.com/bookmark/1230000002167812-2014-11-20
http://segmentfault.com/bookmark/1230000002167807-2014-11-20
http://segmentfault.com/bookmark/1230000002167803-2014-11-20
http://segmentfault.com/bookmark/1230000002167800-2014-11-20
http://segmentfault.com/bookmark/1230000002167797-2014-11-20
http://segmentfault.com/bookmark/1230000002167792-2014-11-20
http://segmentfault.com/bookmark/1230000002167787-2014-11-20
http://segmentfault.com/bookmark/1230000002167783-2014-11-20
http://segmentfault.com/bookmark/1230000002167777-2014-11-20
http://segmentfault.com/bookmark/1230000002167771-2014-11-20
http://segmentfault.com/bookmark/1230000002167763-2014-11-20
http://segmentfault.com/bookmark/1230000002167758-2014-11-20
http://segmentfault.com/bookmark/1230000002167755-2014-11-20
http://segmentfault.com/bookmark/1230000002167751-2014-11-20
http://segmentfault.com/bookmark/1230000002167746-2014-11-20
http://segmentfault.com/bookmark/1230000002167740-2014-11-20
http://segmentfault.com/bookmark/1230000002167736-2014-11-20
http://segmentfault.com/bookmark/1230000002167710-2014-11-20
http://segmentfault.com/bookmark/1230000002167702-2014-11-20
http://segmentfault.com/bookmark/1230000002167696-2014-11-20
http://segmentfault.com/bookmark/1230000002167689-2014-11-20
http://segmentfault.com/bookmark/1230000002167681-2014-11-20
http://segmentfault.com/bookmark/1230000002167675-2014-11-20
http://segmentfault.com/bookmark/1230000002167670-2014-11-20
http://segmentfault.com/bookmark/1230000002167662-2014-11-20
http://segmentfault.com/bookmark/1230000002167656-2014-11-20
http://segmentfault.com/bookmark/1230000002167648-2014-11-20
http://segmentfault.com/bookmark/1230000002167642-2014-11-20
http://segmentfault.com/bookmark/1230000002167626-2014-11-20
http://segmentfault.com/bookmark/1230000002167620-2014-11-20
http://segmentfault.com/bookmark/1230000002167613-2014-11-20
http://segmentfault.com/bookmark/1230000002167603-2014-11-20
http://segmentfault.com/bookmark/1230000002167598-2014-11-20
http://segmentfault.com/bookmark/1230000002167590-2014-11-20
http://segmentfault.com/bookmark/1230000002167583-2014-11-20
http://segmentfault.com/bookmark/1230000002167575-2014-11-20
http://segmentfault.com/bookmark/1230000002167570-2014-11-20
http://segmentfault.com/bookmark/1230000002167564-2014-11-20
http://segmentfault.com/bookmark/1230000002167533-2014-11-20
http://segmentfault.com/bookmark/1230000002167519-2014-11-20
http://segmentfault.com/bookmark/1230000002167515-2014-11-20
http://segmentfault.com/bookmark/1230000002167512-2014-11-20
http://segmentfault.com/bookmark/1230000002167507-2014-11-20
http://segmentfault.com/bookmark/1230000002167501-2014-11-20
http://segmentfault.com/bookmark/1230000002167496-2014-11-20
http://segmentfault.com/bookmark/1230000002167491-2014-11-20
http://segmentfault.com/bookmark/1230000002167485-2014-11-20
http://segmentfault.com/bookmark/1230000002167476-2014-11-20
http://segmentfault.com/bookmark/1230000002167468-2014-11-20
http://segmentfault.com/bookmark/1230000002167458-2014-11-20
http://segmentfault.com/bookmark/1230000002167423-2014-11-20
http://segmentfault.com/bookmark/1230000002167416-2014-11-20
http://segmentfault.com/bookmark/1230000002167408-2014-11-20
http://segmentfault.com/bookmark/1230000002167398-2014-11-20
http://segmentfault.com/bookmark/1230000002167394-2014-11-20
http://segmentfault.com/bookmark/1230000002167388-2014-11-20
http://segmentfault.com/bookmark/1230000002167382-2014-11-20
http://segmentfault.com/bookmark/1230000002167376-2014-11-20
http://segmentfault.com/bookmark/1230000002167371-2014-11-20
http://segmentfault.com/bookmark/1230000002167365-2014-11-20
http://segmentfault.com/bookmark/1230000002167360-2014-11-20
http://segmentfault.com/bookmark/1230000002167353-2014-11-20
http://segmentfault.com/bookmark/1230000002167347-2014-11-20
http://segmentfault.com/bookmark/1230000002167336-2014-11-20
http://segmentfault.com/bookmark/1230000002167329-2014-11-20
http://segmentfault.com/bookmark/1230000002167323-2014-11-20
http://segmentfault.com/bookmark/1230000002167275-2014-11-20
http://segmentfault.com/bookmark/1230000002167269-2014-11-20
http://segmentfault.com/bookmark/1230000002167260-2014-11-20
http://segmentfault.com/bookmark/1230000002167252-2014-11-20
http://segmentfault.com/bookmark/1230000002167241-2014-11-20
http://segmentfault.com/bookmark/1230000002167234-2014-11-20
http://segmentfault.com/bookmark/1230000002167228-2014-11-20
http://segmentfault.com/bookmark/1230000002167223-2014-11-20
http://segmentfault.com/bookmark/1230000002167213-2014-11-20
http://segmentfault.com/bookmark/1230000002167208-2014-11-20
http://segmentfault.com/bookmark/1230000002167198-2014-11-20
http://segmentfault.com/bookmark/1230000002167191-2014-11-20
http://segmentfault.com/bookmark/1230000002167186-2014-11-20
http://segmentfault.com/bookmark/1230000002167181-2014-11-20
http://segmentfault.com/bookmark/1230000002167177-2014-11-20
http://segmentfault.com/bookmark/1230000002167169-2014-11-20
http://segmentfault.com/bookmark/1230000002167162-2014-11-20
http://segmentfault.com/bookmark/1230000002167158-2014-11-20
http://segmentfault.com/bookmark/1230000002167126-2014-11-20
http://segmentfault.com/bookmark/1230000002167117-2014-11-20
http://segmentfault.com/bookmark/1230000002167110-2014-11-20
http://segmentfault.com/bookmark/1230000002167105-2014-11-20
http://segmentfault.com/bookmark/1230000002167102-2014-11-20
http://segmentfault.com/bookmark/1230000002167098-2014-11-20
http://segmentfault.com/bookmark/1230000002167095-2014-11-20
http://segmentfault.com/bookmark/1230000002167090-2014-11-20
http://segmentfault.com/bookmark/1230000002167082-2014-11-20
http://segmentfault.com/bookmark/1230000002167079-2014-11-20
http://segmentfault.com/bookmark/1230000002167073-2014-11-20
http://segmentfault.com/bookmark/1230000002167069-2014-11-20
http://segmentfault.com/bookmark/1230000002167065-2014-11-20
http://segmentfault.com/bookmark/1230000002167062-2014-11-20
http://segmentfault.com/bookmark/1230000002167055-2014-11-20
http://segmentfault.com/bookmark/1230000002167050-2014-11-20
http://segmentfault.com/bookmark/1230000002167048-2014-11-20
http://segmentfault.com/bookmark/1230000002167038-2014-11-20
http://segmentfault.com/bookmark/1230000002167033-2014-11-20

时间: 2024-12-05 04:34:34

《宁海帽峰山灵峰寺楹联》(第一稿)的相关文章

登圭峰山

早上没有动力起床,其实对于今天的旅行是没有什么期待的,因为,昨天想去的学生户外穿越团报名已满,今天的旅行并不是我想要的,所以才没有什么动力.不过,鉴于另一个同学的督促,我还是很愿意一起去登山.起来后,洗漱完,便去教研室汇合,然后一起计划去登山的事情.他们方向感并不是很好,所以这变成了我的责任,负责领路,和导航.但是,我想说,这样子负一个小队的责任,还是很有成就感的,因为我的经验可以一次性帮助两个人,给他们一次愉快的旅行做保障. 有个小插曲,关于教研室门的问题,虽然是高科技,但是只是更智能化,自动

第七天 RHEL6.5安装vmware tools、RHEL6.5及RHEL7.2 root密码破解、Linux用户管理(第一稿)

1.RHEL6.5安装vmware tools. 打开RHEL6.5虚拟机 点击菜单栏虚拟机选项下有一个安装vmware-tools(因为我已经安装过了,所以是重新安装) 这是系统会自动挂载光驱,将vmware-tools光盘挂载 打开终端,方便起见,卸载光驱后挂载到/mnt umount /dev/cdrom mount /dev/cdrom /mnt 在/mnt目录下,有一个vmware-tools的工具包 将其拷贝到~目录下 cp VMware-   ~ 对拷贝的压缩包解压 注:压缩包有两

2014个人总结

---恢复内容开始--- 看到朋友圈个个都在刷屏,都在总结自己今年的风流史,自己想想,已经很多年没有写自我总结啦,系时候要写下 回顾2014年,我到底有什么收获呢, 1.我想和工作谈谈 过年后的元宵,本身已经答应了一家音乐公司的offer年后入职,但是现任公司不准走,要走都要一个月之后,音乐公司打来为什么还没来,只好实话实说,对方也感到无奈,后来就只有有机会合作,本身我是很想去音乐公司的,因为一直有我的兴趣在那里,我想每个人都想自己的工作同时可以有自己的兴趣所在,我是比较喜欢唱歌的,到了3月份,

过眼云烟般的2014

转眼之间,2014已过,毕业来广州已经一年半了.经过了,择业->就业->迷茫->再迷茫->辞职->择业->就业->又迷茫,不间断的“迷茫”循环,感觉自己这一年半中,从来没找到自己喜欢的.合适的方向,一直在迷茫中工作,迷茫中度日. 不是程序猿,却干着和程序猿差别不大的工作.刚来广州的时候去了萝岗一家机械制造公司的IT部门,名为“软件工程师”,做着“软件工程师+运维工程师+网络管理员”的活. 你没看错,是“机械制造公司”.刚到公司的时候,被安排到车间去呆三个月.天天和

《大道至简》第一,二章读后感

注:我忘记老师要求什么时间之前提交了,之所以发了这么晚是因为我觉得要写读后感的话最好还是把一本书读完了再写读后感比较好.但是直到今天晚上我发现,由于我的变成基础并不扎实,编程的造诣也并不深,所以在这短短几天之内根本不可能读完这本书.当然囫囵吞枣不求甚解倒是没问题,但是要大致读懂意思却是几乎不可能.所以只好写读后感写到第一二章. 第一章标题是编程的精义,讲的是如何用最朴素最大众最傻瓜的方法编写出一个程序.以“愚公移山”的故事贯穿全篇.愚公首先有用户需求,即被两座大山挡住了门.有具体的目标,也就是搬

Java 7 Concurrency Cookbook 翻译 第一章 线程管理之四

七.创建和运行一个后台线程 Java中有一种特别的线程叫做 deamon(后台) 线程.这类线程具有非常低的权限,并且只有在同一个程序中没有其他的正常线程在运行时才会运行.注意:当一个程序中只剩下后台线程时,JVM会终结所有的后台线程并结束程序. 由于这个特性,后台线程一般用于为同一个程序中的其他正常线程提供服务.这种后台线程一般都有一个无限的循环在等待请求服务或者执行请求的任务.由于不知道它们何时可以获得CPU的调用执行,同时在没有其他正常线程的情况下会被JVM终结,所以后台线程不能用于执行重

Java 7 Concurrency Cookbook 翻译 第一章 线程管理之三

五.睡眠和唤醒一个线程 有时,你会想要在一段特定的时间后再去中断线程的运行.举个例子,程序中的一个线程每一分钟检查一次传感器的状态,剩余的时间,线程应该处于空闲的状态.在这段空闲时间里,线程不会使用计算机的任何资源.一分钟后,线程已经准备好了,才让JVM选择调用它继续执行.你可以使用 Thread 类的 sleep() 方法来达到此目的.该方法接受一个 int 类型参数表明线程挂起不运行的毫秒数.当睡眠时间结束,线程转移到可运行状态等待JVM的调度. TimeUnit 枚举类的某个成员同样具有

Java 7 Concurrency Cookbook 翻译 第一章 线程管理之二

三.中断一个线程 一个拥有多个线程的Java程序要结束,需要满足两个条件之一:一是所有的非后台线程都执行结束了:二是某个线程执行了 System.exit() 方法.当你想要终结一个运行中的Java程序或者程序的用户想要取消一个线程正在执行的任务时,你都需要结束一个线程. Java提供中断机制来表明我们想要终止一个线程.这个机制的核心是线程必须要检查自己是否被中断,而且线程自己决定是否响应中断请求.线程可以忽略该中断请求而继续执行. 在本秘诀中,我们将开发一个程序,这个程序创建线程,5秒后使用中

Java 7 Concurrency Cookbook 翻译 第一章 线程管理之六

十一.处理线程组中的未控制异常 每种编程语言一个很重要的特性就是其所提供的用来处理程序中错误情况的机制.Java语言和其他的现代语言一样,是提供了异常机制来处理对象程序中的错误.Java提供了很多的类来对应不同的错误.当Java检查到这些错误时,会抛出对应的异常对象.你可以直接使用那些异常类或者实现自己的异常类来处理程序中出项的错误情况. Java同时提供了捕获和处理异常对象的机制.异常必须被捕获或者重新抛出来.这类异常称为检测异常.还有一类异常不必捕获和处理,称为不检测异常. 在本秘诀中,我们