⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 semaphore.html

📁 Producer Consumer problem simulator to solve Synchronization issues
💻 HTML
字号:
<HTML>
<HEAD>
</HEAD>
<BODY>

<style type="text/css">
H1		{font-family:Arial, sans-serif; color:#8989DB; 
	 	font-size:19pt; font-weight:normal;}

P		{font-family:Arial, sans-serif; font-size:10pt;}

LI		{font-family:Arial, sans-serif; font-size:10pt;}

a:link	{color:#000066;}

a:visited	{color:#666666;}
</style>

<h1>Bounded-Buffer Problem Using Semaphores</h1>
<P>

This Java applet demonstrates the bounded-buffer consumer/producer problem using semaphores. The semaphore putSema is used to keep track of the number of empty spaces. The semaphore takeSema helped to keep track of the number of items in the buffer. The semaphore bufferSema is used for mutual exclusion of the buffer.
<P>&nbsp;</P>

<applet
	code=BoundedBuffer.class
	name=semaphore
	width=600
	height=240  VIEWASTEXT>
	<param name=label value="This string was passed from the HTML host.">
	<param name=background value="008080">
	<param name=foreground value="FFFFFF">
</applet>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -