. NET-parallel development

Source: Internet
Author: User

Parallel development has always been a hurdle for programmers in development projects, but in order to meet the hardware upgrade, the face of high-end multi-core processor, parallel programming is imperative. Development in the. NET platform supports parallel mode, with a practical project that illustrates the high efficiency and the magic of parallelism.

In the optimization of China's Iron Construction enterprise Management system, encountered an urgent need to solve the problem. is the report processing response time problem, in the system initially less data, export report response time is faster. But with the expansion of data, it takes about 5 minutes to export (about 600) data from one branch, which is related to the configuration of the computer. If the total Company's Project report export (6,000 or so), that time in the ordinary computer is simply a long wait. In this way, it takes a long time to export on the high-end configuration server of China Railway Construction Corporation. The system in the report processing this piece needs to be optimized, my solution is parallel.

As the report of the head office is synthesized by the report of each branch (subsidiary), the original programming is run according to the serial principle of the program, that is, after completing the report of a subsidiary company, we can continue the report operation of the next subsidiary. Head office A total of about 50 branches and project headquarters, so that the serious increase in the production of export report time. The use of parallelism is to put the original subsidiaries in almost (this need to look at. NET parallel operation principle, they still have a very small time interval in parallel, processing the report at the same time, begin to run. Change the time period of 50 times to one (the slowest time to start, the last to end). This greatly accelerates the processing speed of the report. But parallelism is not very good control, I test, explored for a long time to solve the problem of data sharing, data conflict.

Of course, parallel development requires the use of programs to call the system's multicore processor, so that the CPU resource consumption is particularly high, my project in the report export is basically CPU consumption is 100%. It is necessary to accept space in exchange for time. However, in the real multi-core high-end server hardware, combined with the improvement of parallel programs, the company's report export time problem has finally been solved.

Here are some of the procedures that are worth talking about is the process trace of the report generation time, which basically reflects the record of the parallel program during the running process.

Figure 1 Report export time tracking for Total AG

Figure 21 Report export time tracking for subsidiaries

Figure 3 Report export Show Show

Figure 4 Export Excel Show

. NET-parallel development

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.