风儿之歌

世间事有难易乎~~

Timer and Thread in C# 2.0

1. There are three types of timer in c#:
 a. System.threading.Timer
  It’s the usual timer which will quest a thread from .net thread pool to execute the period callback you registerd when starting the timer.
 b. System.Timers.Timer
  It’s a swrapper for System.threading.Timer, and it’s designed for UI component. It may be dropped by MS in the future. We’d better not use it.
 c System.windows.form.Timer
  It’s like old

Posted by 风儿 at 02:16pm | C# Studying | no comments

Event in C# 2.0

1. Every event’s signature is determined by the event handler which is a delegate.

2. Actually, C# will create a private delegate in your class to represent an Event. So only the class where event exists can call fire the event in this manner: event();  

3. To allow the class’s children class to fire the event(inheriting the event), usually you have to define a protected method named "OnEventXXX" which should call event();

Posted by 风儿 at 06:34pm | C# Studying | one comment

JUnit使用

1. 在每一个test方法运行之前后,setUp和tearDown都会得到执行。
2. 可以用suite.addTest(new TestUserDAO("testXXX"))来增加对一个方法(也即一个测试用例)的测试
3. 如果几个TestCase类都使用通用的fixture,可以使用基类来抽象

Posted by 风儿 at 09:20am | Java | no comments

Linux2.6.16的启动过程

Linux阅读报告之Linux2.6.16的启动过程

Linux2.6.16的内存

Liunx阅读报告之2.6.16的内存管理

Linux2.6.16的中断

Linux阅读报告之Linux2.6.16的中断

Linux2.6.16的进程

Linux阅读报告之Linux2.6.16的进程

在2.6.16中使用s3c2410的usb1.1

port usb1.1 to 2.6.16 kernel on s3c2410

Posted by 风儿 at 04:47pm | Linux | no comments

port madplay to arm-based smdk2410

port a mp3 palyer named madplay to the target board(smdk2410), the linux kernel version is 2.6.16.

Posted by 风儿 at 09:35pm | Linux | one comment

Port soud card driver from linux 2.6.11 to 2.6.16(s3c2410)

On the smdk2410, port the soud card driver(uda1341) from 2.6.11 to 2.6.16.

Posted by 风儿 at 09:23pm | Linux | 6 comments

下一页 »