<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem.Runtime.CompilerServices%2FMethodImplOptions</id>
		<title>Csharp/C Sharp by API/System.Runtime.CompilerServices/MethodImplOptions - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem.Runtime.CompilerServices%2FMethodImplOptions"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Runtime.CompilerServices/MethodImplOptions&amp;action=history"/>
		<updated>2026-04-30T00:57:57Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Runtime.CompilerServices/MethodImplOptions&amp;diff=4355&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Runtime.CompilerServices/MethodImplOptions&amp;diff=4355&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:35Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Runtime.CompilerServices/MethodImplOptions&amp;diff=4356&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Runtime.CompilerServices/MethodImplOptions&amp;diff=4356&amp;oldid=prev"/>
				<updated>2010-05-26T12:10:48Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==MethodImplOptions.Synchronized==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
/*&lt;br /&gt;
Revised from code in &amp;quot;Computing with C# and the .NET Framework&amp;quot;&lt;br /&gt;
# Paperback: 753 pages&lt;br /&gt;
# Publisher: Jones and Bartlett Publishers, Inc.; Bk&amp;amp;amp;CD-Rom edition (February 2003)&lt;br /&gt;
# Language: English&lt;br /&gt;
# ISBN: 0763723398&lt;br /&gt;
# Product Dimensions: 8.9 x 7.7 x 1.1 inches&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using System.Runtime.rupilerServices;&lt;br /&gt;
using System.Threading;  &lt;br /&gt;
  class Buffer {&lt;br /&gt;
    public const int size = 3;&lt;br /&gt;
    int[] buffer = new int [size];             &lt;br /&gt;
    int putpos=0;&lt;br /&gt;
    int getpos=0;&lt;br /&gt;
    int number=0;&lt;br /&gt;
    [MethodImpl(MethodImplOptions.Synchronized)]&lt;br /&gt;
    public void Put(int value) {&lt;br /&gt;
      if (number == size) {&lt;br /&gt;
        Console.WriteLine(&amp;quot;Cannot put -- Buffer full&amp;quot;);&lt;br /&gt;
        Monitor.Wait(this);&lt;br /&gt;
      }&lt;br /&gt;
      number++;&lt;br /&gt;
      buffer[putpos] = value;&lt;br /&gt;
      Console.WriteLine(&amp;quot;Put &amp;quot;+value);&lt;br /&gt;
      putpos = (putpos + 1) % size;&lt;br /&gt;
      if (number == 1) Monitor.Pulse(this);         &lt;br /&gt;
    }&lt;br /&gt;
    [MethodImpl(MethodImplOptions.Synchronized)]&lt;br /&gt;
    public int Get() {&lt;br /&gt;
      if (number == 0) {&lt;br /&gt;
         Console.WriteLine(&amp;quot;Buffer empty&amp;quot;);&lt;br /&gt;
         Monitor.Wait(this);&lt;br /&gt;
      }&lt;br /&gt;
      number--;&lt;br /&gt;
      int n = buffer[getpos];&lt;br /&gt;
      Console.WriteLine(&amp;quot;Get &amp;quot;+n);&lt;br /&gt;
      getpos = (getpos + 1) % size;&lt;br /&gt;
      if (number == size - 1) Monitor.Pulse(this);    &lt;br /&gt;
      return n;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
  class Producer {&lt;br /&gt;
     Buffer buf;&lt;br /&gt;
     public Producer(Buffer b) { &lt;br /&gt;
        buf = b;&lt;br /&gt;
        Thread thread = new Thread(new ThreadStart(Run));&lt;br /&gt;
        thread.Start();  &lt;br /&gt;
     }      &lt;br /&gt;
     public void Run() {&lt;br /&gt;
       for(; true; ) {&lt;br /&gt;
             buf.Put(0);&lt;br /&gt;
       }&lt;br /&gt;
     }&lt;br /&gt;
  }&lt;br /&gt;
  class Consumer {&lt;br /&gt;
     Buffer buf;&lt;br /&gt;
     public Consumer(Buffer b) { &lt;br /&gt;
       buf = b;&lt;br /&gt;
       Thread thread = new Thread(new ThreadStart(Run));&lt;br /&gt;
       thread.Start();  &lt;br /&gt;
     }&lt;br /&gt;
     public void Run() {&lt;br /&gt;
       for (; true;) {&lt;br /&gt;
           buf.Get();&lt;br /&gt;
       }&lt;br /&gt;
     }&lt;br /&gt;
  }&lt;br /&gt;
public class PutGet {&lt;br /&gt;
  public static void Main(String[] args) {&lt;br /&gt;
    Buffer b = new Buffer();&lt;br /&gt;
    Producer p = new Producer(b);&lt;br /&gt;
    Consumer c = new Consumer(b);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
       &lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>