Parallel
文章平均质量分 77
yxzzy_young
华中科技大学软件学院学士-->北京大学软件与微电子学院在读硕士-->?
目前正在研究Information Retrieval&Data Mining&Machine Learning。
展开
-
Communications of Processes and Threads
Communications of ProcessesThere are 5 ways for processes to communicate with each other.1. Environment Variable/File DescriptorThe child process inherits the copies of many kinds of resources o原创 2007-07-08 10:32:00 · 551 阅读 · 0 评论 -
Three Methods to Parallel Programming Decomposition
The key point to write parallel programs is to treat the program as a set of many related or unrelated sub-tasks. The process that the program is divided into some independent sub-tasks and their rela原创 2007-07-08 17:20:00 · 574 阅读 · 0 评论 -
Use pthread_exit() To Terminate main() With The Other Threads Alive
When you program with POSIX Threads API, there is one thing about pthread_exit() that you may ignore for mistake. In subroutines that complete normally, there is nothing special you have to do unless原创 2007-07-13 13:01:00 · 767 阅读 · 0 评论 -
CPU Identification
Here is some code to check out your cpu identification using CPUID instruction. Try it first.#include #include #include #include #include bool is_intel_cpu(){ char cpu_id[13];_asm { MOV EAX, 0原创 2007-08-08 20:17:00 · 647 阅读 · 0 评论 -
Parallel program running in dual-core environment
Recently I have been studying parallel programming. Paralleled programs can get better performance in multicore machines. For example, a program creating two threads to do a job can reduce the executi原创 2007-08-08 21:55:00 · 1335 阅读 · 2 评论 -
Test the efficiency of the exclusion objects in Windows
There are mainly four kinds of exclusion objects, which can be used in solving the problems of race condition, on Windows platform. They are Critical Section, Mutex, Semaphore, and Event. As most peop原创 2008-04-03 13:44:00 · 580 阅读 · 0 评论