<!drk7jp_parse_scope>
<!/drk7jp_parse_scope>
* C# �ǥޥ������å� ��Ʊ���ǥꥲ������
���ε�����ľ���URL: Permlink | ���ε�����°���륫�ƥ���: [.net] [C#]
C# �ǥ���åɤ�Ȥ���ˡ�Υ�⡣����ϥǥꥲ���Ȥ�Ȥ��������
�������Ϥ��롣
����ͤ��갷���롣�����ǥ��󥰤��ѻ��ˤʤ�ΤǤ�ä����Ȥʤ����ɡ�
�㳰�ϥ�ɥ�󥰤��Ǥ��롣
��Ʊ���ǥꥲ���ȤϻȤ����꤬�ɤ�������åɥס���θϳ�ˤ�������Ĥ��Ƥ���������Í�ѡ�Thread ���饹��Ȥä��ޥ˥奢�륹��åɤ������¤����ʤ��Ƥ��äȳڤ���
�ǥꥲ���ȥ��֥������Ȥ���������BeginInvoke() �᥽�åɤ�Ƥ֡�
�ǥꥲ���Ȥ�̾���� ���Υ᥽�å�̾ + Delegate �ˤ��Ƥ����Ȥ狼��䤹����Worker ���ä��� WorkerDelegate ����
- ��Ʊ���ǥꥲ���Ȥ�Ȥä��ޥ������åɤ���ħ
����åɥס���Ǽ¹Ԥ���롣�������Ϥ��롣
����ͤ��갷���롣�����ǥ��󥰤��ѻ��ˤʤ�ΤǤ�ä����Ȥʤ����ɡ�
�㳰�ϥ�ɥ�󥰤��Ǥ��롣
��Ʊ���ǥꥲ���ȤϻȤ����꤬�ɤ�������åɥס���θϳ�ˤ�������Ĥ��Ƥ���������Í�ѡ�Thread ���饹��Ȥä��ޥ˥奢�륹��åɤ������¤����ʤ��Ƥ��äȳڤ���
- ��Ʊ���ǥꥲ���ȤλȤ���
����åɤǼ¹Ԥ������᥽�åɤȡ����Υǥꥲ���Ȥ�񤯡��ǥꥲ���ȥ��֥������Ȥ���������BeginInvoke() �᥽�åɤ�Ƥ֡�
- ��Ʊ���ǥꥲ���Ȥ�Ȥä��ޥ������åɥץ������Υ���ץ륳����
�᥽�åɤΥǥꥲ���Ȥ��äơ�BeginInvoke() ����������������˳ڡ��ǥꥲ���Ȥ�̾���� ���Υ᥽�å�̾ + Delegate �ˤ��Ƥ����Ȥ狼��䤹����Worker ���ä��� WorkerDelegate ����
using System;
using System.Threading;
namespace AsyncDelegate {
/// <summary>
/// Class1 �γ��פ������Ǥ���
/// </summary>
class Class1 {
/// <summary>
/// ���ץꥱ�������Υᥤ�� ����ȥ� �ݥ���ȤǤ���
/// </summary>
[STAThread]
static void Main(string[] args) {
WorkerDelegate del = new WorkerDelegate(Worker);
del.BeginInvoke("This thread is worker thread", null, null);
for (;;) {
Console.WriteLine("This thread is main thread");
Thread.Sleep(573);
}
}
private delegate void WorkerDelegate(string message);
/// <summary>
/// ���������å�
/// </summary>
/// <param name="message"></param>
private static void Worker(string message) {
for (;;) {
Console.WriteLine(message);
Thread.Sleep(1701);
}
}
}
}
- ���٤Ƥε����θ��Ф� (��1029��)
- �����ƥ���ΰ����ȵ����ο�
- ���ƥ��ꤴ�Ȥ˵�����ޤȤ��ɤߤǤ��ޤ���������ɽ������򸫤������ϡ����٤Ƥε����θ��Ф� (���ƥ�����ɽ��) �ء�
- .net (57��)
- 2ch (19��)
- amazon (5��)
- Apache (22��)
- bash (13��)
- Bookmarklet (9��)
- C# (45��)
- chalow (18��)
- ChangeLog ��� (20��)
- coLinux (2��)
- CSS (5��)
- Delphi (5��)
- DVD (6��)
- Excel (1��)
- F-ZERO (4��)
- FF12 (31��)
- ftp (8��)
- Google (21��)
- gpg (7��)
- HTML (19��)
- http (19��)
- IE (10��)
- IIS (4��)
- iPod (2��)
- JavaScript (14��)
- Linux (63��)
- MCP (6��)
- Mozilla (14��)
- MS SQL Server (30��)
- MySQL (4��)
- Namazu (3��)
- PC (48��)
- Perl (58��)
- PHP (2��)
- Postgres (36��)
- proftpd (2��)
- qmail (1��)
- RFC (4��)
- RSS (33��)
- Ruby (15��)
- samba (3��)
- sonic64.com (6��)
- SQL (15��)
- Squid (3��)
- ssh (7��)
- Subversion (3��)
- unix (31��)
- VSS (2��)
- Windows (34��)
- winny (9��)
- XML (9��)
- xyzzy (17��)
- �����Ǥ� �ɤ��֤Ĥο� (19��)
- ���ۻ� (5��)
- �������������� (13��)
- ���˥� (9��)
- ���쥸�åȥ����� (2��)
- ������ (120��)
- �����륹����ץ� (18��)
- �����2 (8��)
- �������ƥ� (9��)
- ���եȥ����� (21��)
- �ǥ�����ѥ����� (2��)
- �ͥåȥ�� (30��)
- �Хå����å� (17��)
- �ץ�����ߥ� (14��)
- �ޥꥪ������DS (3��)
- �᡼�� (26��)
- ��� (116��)
- �顼��� (11��)
- ���� (59��)
- ���� (3��)
- ��������� (13��)
- �� (7��)
- ��� (4��)
- �� (30��)
- �㤤ʪ (17��)
- ���� (8��)
- �� (32��)
- ̡�� (9��)
- 2007-04-23 (Mon)
- 2007-03-07 (Wed)
- 2007-02-27 (Tue)
- 2007-01-17 (Wed)
- 2007-01-15 (Mon)
- 2007-01-14 (Sun)
- 2007-01-08 (Mon)
- 2006-12-01 (Fri)
- 2006-11-22 (Wed)
- 2006-11-20 (Mon)
- 2006-11-19 (Sun)
- 2006-09-30 (Sat)
- 2006-08-29 (Tue)
- 2006-08-04 (Fri)
- 2006-07-27 (Thu)
- 2006-07-23 (Sun)
- 2006-07-17 (Mon)
- 2006-07-10 (Mon)
- 2006-07-06 (Thu)
- 2006-07-03 (Mon)
- 2006-06-29 (Thu)
- 2006-06-28 (Wed)
- 2006-06-27 (Tue)
- 2006-06-25 (Sun)
- 2006-06-19 (Mon)
- 2006-06-18 (Sun)
- 2006-06-15 (Thu)
- 2006-06-11 (Sun)
- 2006-06-01 (Thu)
- 2006-05-30 (Tue)
- �ץ��ե�����
- ��ƣ ���������󥸥˥��Ǥ������ԵܻԤ˽���Ǥ��ޤ���
- ���
- RSS
- ���ݥ󥵡��ɥ��
- Powered by
- �������饤�󥿡��ͥå���