Wednesday, February 3, 2016
C # project will not run in the real machine ppc?
Machine environment is xp sp2 + vs2005 + vm 5.0 ppc + ActiveSync4.5.5059
Real machine is dopod 830 ppc
The question now is works with C # created can not run on the real machine, an error: "The application (* .exe) than this device requires a newer version of Microsoft (R) installed .NET Compact Framework."
Click Error details Show "InvalidProgramException"
Dopod 830 online queries cf2.0 already installed, and I once again on the machine installed cf2.0, also or not.
Projects can be properly run in the simulator, but moved to the top of the real machine, even a simple example and can not run, there will be above error, please help out, thank you! !
Reply:
Previously encountered such a problem, like a heavy-.netcf2.0
Reply:
To zhuyun1111 (rain desert):
Thank you for your answer.
Before the problem has been resolved on the phone installed NETCFv2.wm.armv4i.cab.
Give you 10 minutes, not too few. ^ _ ^
Reply:
Oh, the original can not just give 10 points ah, it gave the okay, very grateful.
Knot tie ~
wap2.0 (xhtml) is not supported in the select onpick how to do? What alternatives horse?
I do have one idea is to use the label in xhtml wml in, but does not seem to?
Consult experts. . . . Thank you. . . . Or are there any other solution? ? ?
& Lt; DOCTYPE html PUBLIC "- // WAPFORUM // DTD XHTML Mobile 1.0 // EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><html xmlns =" http!: //www.w3.org/1999/xhtml "xmlns: wml =" http://www.wapforum.org/2001/wml "& gt;
Then
using onpick& Lt; select name = "category" & gt;
& Lt; option wml: onpick = "? Categoryid = xxx" & gt; xxxx & lt; / option & gt;
& Lt; / select & gt;
Reply:
xhtml does not support the event ,,, and in accordance with the above method does not work, toss a morning, to ask for advice! ! ! ! thanks, thanks
Reply:
The issue is resolved, my idea is correct
Reply:
Are all good suggestions! Worth learning
Reply:
Landlord Can you send me the code to solve, in this Thank you! My mail: 294073056@qq.com
Reply:
& Lt;? Xml version = "1.0" encoding = "UTF-8" & gt;?
& Lt;% @ Page Language = "C #" AutoEventWireup = "true" ContentType = "text / vnd.wap.wml"% & gt;
& Lt;! DOCTYPE html PUBLIC "- // WAPFORUM // DTD WML 2.0 // EN" "http://www.wapforum.org/dtd/wml20.dtd" & gt;
& Lt; html xmlns = "http://www.w3.org/1999/xhtml" xmlns: wml = "http://www.wapforum.org/2001/wml" & gt;
& Lt; head & gt;
& Lt; meta http-equiv = "Content-Type" content = "text / html; charset = UTF-8" / & gt;
& Lt; meta name = "viewport" content = "width = device-width; initial-scale = 1.0; minimum-scale = 1.0; maximum-scale = 2.0" / & gt;
& Lt; link rel = "stylesheet" href = "css / common.css" type = "text / css" / & gt;
& Lt; link rel = "stylesheet" href = "css / wap.css" type = "text / css" / & gt;
& Lt; title & gt; Untitled Document & lt; / title & gt;
& Lt; / head & gt;
& Lt; body & gt;
& Lt; select class = "txt130" & gt;
& Lt; option onpick = "http://www.caissa.com.cn" & gt; 2011-12-24 Departure & lt; / option & gt;
& Lt; option onpick = "http://www.caissa.com.cn" & gt; 2011-12-24 Departure & lt; / option & gt;
& Lt; / select & gt;
& Lt; / body & gt;
& Lt; / html & gt;
Reply:
Such writing is got to pay attention to & lt;! DOCTYPE html PUBLIC "- // WAPFORUM // DTD WML 2.0 // EN" "http://www.wapforum.org/dtd/wml20.dtd" & gt;
vs2003 + sdk 3rd + carbide_vs_201.exe problems encountered during commissioning
Came into contact with symbian, please, under the guidance,
After using the above environments, open the sample program, compiler, simulator missing but no display, and so on while the application is closed after report warning of. I ask how should I do to see the effects in the simulator?
Reply:
The sdk installed to the default path. net perl symbian. vs
Configuring epocroot and path
Reply:
Install symbian OS 9.1,9.2 a problem
mobile 5 which databases can be used to run
In addition to the mobile 5 mobile SQL database can be used as well as those used abroad there is a product called epocrate Essentials, his use of the database file (extension may be modified because of the .dat) is very small, I do not know if people know about it What is the use the library, whether it is SQL relational databases, or something else?
I was doing the software on a PDA because the current library file too much space, so I want to replace.
Database I'm using Mobile SQL platform is Mobile 5
Reply:
Mimer SQL Mobile
In fact, your ideas are wrong, you should use xml
Reply:
Use XML? ? Use DOM or SAX parsing XML data? If a small amount of data under circumstances, can also, if the case of large volumes of data handled? ? Efficiency will not be too low? ?
Reply:
the mobile phone will be very complex applications do, the data structure is not complicated to the extent that large-scale databases, do not you need a dozen interrelated tables?
If you use a database, you did not do anything, a few hundred K on the go, but also lead to complex systems.
Reply:
Library files, do not like the same character, whether itself also have certain structural?
A lot of data to retrieve the general idea is to use the database.
Reply:
Windows Ce Chapter 9 database programming topics
Reply:
Bar with sqlite
Reply:
Now the sun's strongly recommended their products pocket builder power builder said it was a good ppc version
I personally have not used, because sun does not provide the developer a trial version, buy on the bad mood
Personally, I strongly recommend xml! ! ! Very convenient, it saves space
Will create a modal dialog box in the softbar, click the button softbar on how not receive the keys of news?
Will create a modal dialog box in the softbar, click the button softbar on how not receive the keys of news?
Do you want to pass TouchScreen treatment or treatment by Mouse?
If yes, how do you know by the coordinate values of the corresponding key it?
Reply:
Not to mention it to you, use:
SetWindowLong (hwnd, message, Proc)
Setting text control, and then write a proc process key
Reply:
Now situation is,
1, I created a softkey bar
function by SHCreateMenuBar
2, I overloaded PreTranslateMessage function, through the function keys on the keyboard messages can be processed correctly
3, but through the touch screen click the corresponding softkey, there is no corresponding keyboard keys message, only the left mouse button pressed, moved, released the news. And I do not know how the coordinate point by (x, y) is converted to the corresponding button.
Reply:
Adding key response message on it
Reply:
smartphone in doing so can it
[Links] Several multicore programming problem and coping strategies (a problem)
Note: The full text of this article posted from drzhouweiming column (http://blog.csdn.net/drzhouweiming), to get a better reading results, you can view the original here: http: //blog.csdn.net/drzhouweiming/ archive / 2007/04/10 / 1559698.aspx
Several multicore programming problem and coping strategies (a problem)
With the birth of multi-core CPU, multi-core programming issues will be put on the programmer's schedule, there are many old programmers that long ago how CPU machine, the industry programming on multiple CPU machines has accumulated a lot of experience, Programming will be similar multi-core CPU, as long draw before multitasking programming, parallel programming and parallel algorithms aspect of the experience is enough.
I want to say yes, multicore machines and previous multi-CPU machines are very different from previous multi-CPU machines are used in specific areas, such as a server, or some may be large-scale parallel computing areas, which is easy to play the advantages of multi-CPU, multi-core machine is now applied to all aspects of ordinary users, especially the client machine you want to use a multi-core CPU, and a lot of the client software in order to play the advantages of multi-core parallel is probably no server and can be large Simple parallel computing in specific areas.
When the General Assembly when participating in CSDN and Mr. Meng Yan chatted multicore programming, Mr. Meng Yan of multicore programming feel very pessimistic about the future, and when you saw him last year in view of the prospects of multicore programming completely changed. Mr. Meng Yan wanted to have a very deep understanding of the multi-core programming, because of the time issue, and Mr. Meng Yan failed in this regard in-depth talk down. On the way back, I re-thought about at about multicore programming difficulties of today and quickly returned home to write it down, posted for everyone to share.
Serialization problem areas: a puzzle1) The acceleration factor
When measuring the performance of multiprocessor systems, an index typically requires called acceleration factor is defined as follows:
S (p) = single processor execution time (best sequence algorithm) / use p processors having the desired execution time
2) Eminem Jorda Law
There is a parallel processing when Eminem Jorda law, expressed by the following equation:
S (p) = p / (1 + (p-1) * f)
Where S (p) indicates acceleration factor
p represents the number of processorsf represents a serial section occupied by the entire program execution time proportional
When f = 5%, p = 20 时, S around (p) = 10.256
When f = 5%, p = 100 time, S (p) = 16.8
aboutThat is as long as 5% of the serial part, when the number of processors from 20 to 100, the acceleration factor only from about 10.256 to 16.8, an increase of 5 times the number of processors, the speed increase of only 60% more. Even if the number of processors to an infinite number, limit acceleration factor of only 20.
If you follow the laws of Eminem Jorda, it can be said that multi-core and almost no prospects, even if only 1% of the software can not parallelized part, then the maximum speed system can only reach 100, no amount of CPU can not increase speed performance . According to this law, we can say that the development of multi-core CPU makes the continuation of Moore's Law for many years will not reach the limit.
3) Gustafson's Law
Gustafson's law is proposed and Eminem Jorda different assumptions prove acceleration factor is beyond the limits of the laws of Eminem Jorda, Gustafson think software serial portion is fixed and will not increase with increasing size , and assuming the parallel processing execution time is fixed portion (server software may be the case). Gustafson's law using the formula described below:
S (p) = p + (1-p) * fts
Fts which represents the percentage of serial execution
If the serial ratio of 5%, the number of processors is 20, then the acceleration factor of 20+ (1-20) * 5% = 19.05
If the serial ratio of 5%, the number of processor 100, then the acceleration factor of 100+ (1-100) * 5% = 95.05
Gustafson's Law acceleration coefficient was almost proportional to the number of processors, if the reality of the situation in line with the assumption of Gustafson's Law, then the performance of the software will be able to handle with the increase in the number increases.
4) the actual situation in the serial analysis
The results gap Eminem Jorda Law and Gustafson's law is so big, so in the end the reality is that a law in line with it? I personally think that in reality neither like Eminem Jorda's law so pessimistic, but it is not so optimistic as Gustafson's Law. Why do you say? Or make a simple analysis of it.
First need to determine the software in the end there are so content can not be parallelized in order to estimate the proportion of the serial part, when in the 1960s, Bernstein would give three conditions can not be parallel computation:
Condition 1: a storage unit after the write C1, C2 of the read data unit. Called "read-after-write" competition
Condition 2: C1 after reading a data storage unit, C2 write the unit. Called "Reading write" competition
Condition 1: Write a storage unit C1, C2 write the unit. Called "write write" competition
Satisfy the above three conditions can not be any parallel execution. Unfortunately satisfy the above there are a lot of phenomena in the actual software, that is, we often say that the share issue to be locked to protect data.
Serialization problems caused if the lock protection under the premise of a fixed number of tasks, serialization proportion with the increase of software size is reduced, but unfortunately it will increase with the increasing number of tasks , that is to say, the more the number of processors, lock contention would lead to more serious serialized, so that the proportion of serialization sharply increases with the number of processors. (About serialization lock intensified competition led to the situation I will explain in another article). So serialization problem is a major challenge facing multicore programming.
5) Possible solutions
For serial of aspects of the problem, the first thought is to use less lock solutions, even the use of lock-free programming, but it is almost for ordinary programmers difficult to complete the work, because there was no lock programming algorithm is too complicated, and improper use of error-prone, and many have been published in professional journals algorithm to lock-on and later proved to be wrong, imagine how difficult it inside.
The second solution is to use an atomic operation to replace the lock, using atomic operations essentially does not solve the serialization problem, just let serialized speed greatly improved, so that the serial execution time proportional share of the greatly reduced . But chip manufacturers to provide atomic operations currently very limited, only works in a few places, chip makers may also need to continue efforts in this regard, to provide more powerful features little atomic operations of some more places to avoid locks use .
The third solution is to design and to reduce the proportion of algorithmic level serialization share. Perhaps the need to find practical aspects of parallel design patterns to reduce the use of locks, the industry in this regard has already accumulated some experience, such as task decomposition mode, data decomposition mode, data sharing mode, I believe that with the massive use of multi-core CPU there will be more new efficient parallel algorithm design patterns and come up.
The fourth solution is the chip design aspects to consider, because I know nothing about the design of the chip, so the solution may be just my wishful conjecture. The main idea is in the chip level design some new instructions that unlike previous single-core CPU instructions, as is done by a single CPU, but some parallel instruction is completed by a plurality of parallel processing CPU, so the programmer calling these Parallel processing instructions as written in serialized programming procedures, but full use of the advantage of multiple CPU.
The Author: Wei-Ming Zhou, Freelance, in the software industry more than ten years. Currently focused on the content of software testing, multi-core programming, software design and other basic aspects. Written "multi-task under Data Structures and Algorithms," a book, and is currently writing "Software Testing Practice," a book, plans to write a multi-core programming books in the near future.
Reference: "Parallel Programming Mode" Timothy Mattson waiting Ao Fujiang translation
"Parallel Computing Comprehensive Discussion on" Jack Dongarra eds Mo Yao then translated
"Parallel Programming" Barry Wilkinson waited Lu Xinda translated
"Multicore programming techniques" Shameem Akhter waiting Li Baofeng translated
"Parallel Algorithms Practice" Chen Guoliang eds
Reply:
The reply is deleted moderator
Reply:
Hello, may I ask a question rather naive, but I have not figured out the problem, that is, whether the multi-core parallel programs is to establish different core cpu parallel relationship, like a multi-cpu, like instructions and data are parallel, fair treatment of each cpu. Because for multicore cpu is two separate computing unit placed on a silicon wafer, and a storage space or a public channel. In practical terms is two cpu operator involved in computing or control.
Reply:
Mark, wait to come back to learn
Reply:
learning! thinking!
This is a new piece of treasure
Reply:
to su32fn,
In the preparation of multi-core program, you can generally multicore CPU as much to look at. Multicore just interaction (data, instruction exchange, etc.) between the increase in multi-CPU separate bus, faster.
Reply:
The current multi-core multi-core processor is only one program, there are a lot of multi-core processor architecture.
Such as IBM's Cell, SUN etc. The Spark. Because the better the kind of program, there is not conclusive, academia is also great controversy, the future of parallel algorithms, parallel system architecture development, there are many unknowns.
Reply:
mark
Reply:
Somehow, the problem does not know what to say.
The issue separate understand?
1, layer,
Threads, processes operating system to get these things right, at most, to control what they run in which the nucleus.
Here only consider the relationship between processes, threads and multicore.
2, second floor,
Usually an inner thread to complete a transaction, right?
If you want to separate, just to consider the relationship between the transaction and threads between processes, independent of the core.
So, the place with the lock with a lock, multi-threaded, multi-process, the remaining things to the operating system.
intel multicore activities that give me the phone, I did not go blending.
Reply:
If you listen to Meng Yan, then no future, I also read some of his articles. For him, "everyone is drunk, I tried to say."
In this technology inside, head master method, will be half the power in half.
Multi-CPU and multi-core aspects are interlinked.
I can not say understand, know only a few scratched the surface.
Reply:
Linux multicore debugging environment- Intel + Totalview combination
!Currently, in the software development industry, a variety of excellent performance debugging tools abound. However, most of them only support windows environment. Even if we can support linux platform, the operation is also very convenient. Thus, for long-term program to write on linux developers, how to debug it becomes a matter of headache! Intel software and Totalview Debugger is in this case came into being!
Intel software can produce excellent application performance on Intel architecture, and can take advantage of the advanced features of the latest Intel multi-core processors. Combine TotalView Debugger and Intel software debugging tools will set off a revolution under linux!
TotalView Debugger is a debugging tool for linux platform parallel environment, its IDE environment, multithreading (process) debug capabilities, memory debugging capabilities, cluster debugging capabilities are unmatched in the industry!
XLsoft to join Intel, TotalView company on October 30, 2008 held a "multicore debugging Linux environment" free training seminar in Shanghai. We are very pleased to invite you to participate in, and offers free software trial CD!
I. Registration
Online registration page:
http://www.xlsoft.com.cn/TotalView/TotalView_download.asp
registration hotline: 021-62128912 / 010-84492749
Registration Email: Marketing@xlsoft.com.cn
Second, Lectures:
1. Linux platform under debugging tools overview
2. Intel Software Features
3. Totalview Debugger Features
Third, talk time:
2008 年 10 月 30 日 (星期四) 14:00 ~ 17:00
Fourth, Venue:
Shanghai Pine City Hotel, 3rd Floor, Hyatt long hall
(Xujiahui Zhao Jia Bang Road, No. 777 Dongan junction, about 15 minutes from Hengshan Road Station)
Fourth, the activity details:
Contact: Juan
Tel: 021-62128916 Mobile: 15000262606
E-mail: kiko.wang@xlsoft.com.cn
Hotline:
021-62128912 010-84492749
More service information, please contact us Marketing@xlsoft.com.cn or contact information.
Shanghai Information Technology Co., Ltd. World-wide software
Shanghai Tel: 021-62128912 Beijing: 010-84492749
[Help] [CAB] [package] [CF2.0] [SQL] [setup] 1000 points to ask: How will CF2.0 and SQL play with three installation package CAB installation package into the application and run automatically? 2
On a see:
http://community.csdn.net/Expert/topic/5339/5339826.xml?temp=3.628176E-02
There are two master solution is as follows:
gxs0320 () () reputation: 100 Blog Add as a friend 2007-3-14 13:25:11 Score: 0
The first, labeled as a CAB package
First, the CAB CAB package sql package, and the framework to unlock, through the script repackaging click on it.
Second, the installation must be installed from the desktop is Microsoft's synchronizer ActiveSync
Written inside the desktop installer script calls C: \ Program Files \ Microsoft ActiveSync \ CEAPPMGR.EXE it
ydtf_yl (Boy_yl) () reputation: 100 Blog Add as a friend 2007-3-16 15:40:48 Score: 0
Write setup. ini, setup.cs create an installation project, add the above two documents and cab files, build on it. You can also use the tool package.
Because these two masters are a little more simple, now seeking relevant examples.
Once I immediately successful commissioning 1000 points offer!
Reply:
A few days, I will publish an article on my blog, devoted to this
Stay tuned: http: //www.cppblog.com/kuronca
Reply:
Please refer to this article http://www.cppblog.com/kuronca/articles/21818.html
Reply:
Developing and Deploying Pocket PC Setup Applications
http://msdn2.microsoft.com/en-us/library/ms838273.aspx
Deploying .NET Compact Framework 2.0 Applications with .cab and .msi Files
http://msdn2.microsoft.com/en-us/library/aa446504.aspx
Reply:
Fainted, I just finished
Several cab copied to the windows directory
The code then performs the following (you need to initialize RAPI)
CeCreateProcess (L "\\ windows \\ wceload.exe", L "/ noui / noaskdest \\ windows \\ NETCFv2.ppc.armv4.cab", NULL, NULL, FALSE, NULL, NULL, NULL, NULL, & amp; pi);
NETCFv2.ppc.armv4.cab, this operating system is concerned with the cpu
Like the other three packages (I use C ++, tested on vs2005 + ppc2003 / ppc5.0)
[Links] multicore programming in lock contention phenomenon
Note: The full text of this article posted from drzhouweiming column (http://blog.csdn.net/drzhouweiming), there is an illustration of this article, you can view the original here: http: //blog.csdn.net/drzhouweiming/archive/2007 /04/10/1559718.aspx
Multicore Programming lock contention phenomenon
The first few puzzles an explanation multicore programming and Countermeasures (a problem) mentioned in the article will lock competition with the auditor CPU serialization exacerbated by the proliferation of the phenomenon, the article came to multicore programming lock contention in-depth analysis.
For simplicity, we look at a simple case, assume that there are four pairs and other tasks at the same time start to run, assuming that the beginning of each mission there is a need to protect the operation of the lock, time-consuming to 1, the rest of each task Processed 25. This operation started after running several tasks as shown below:
Figure 1: Lock competition for tasks such as schematic
In the figure above, we can see that the first direct execution of a task to the end, with no waiting, waiting for the first two tasks one time unit, the first three tasks to wait two time units, the first three tasks waiting 3 time units.
Thus there are a total of three CPU wait six time units, if these tasks are using OpenMP where all tasks are performed at the same point on waiting to perform all the tasks completed when then execute down, then the total running time will The fourth task is the same 29 time units, the acceleration factor: (1 + 4 × 25) / 29 = 3.48
Even with an average time of 27.5 four tasks to be calculated, acceleration factor = 101 / 27.5 = 3.67
Eminem is calculated in accordance with the laws Jorda acceleration factor, then the above applications, the serial time is 1, the total time of parallel processing into the time after a serial of 100 units, if placed on a 4-core CPU running it, acceleration factor = p / (1 + (p-1) * f) = 4 / (1+ (4-1) * 1/101) = 404/104 = 3.88
This creates a strange question, then use the lock, even Eminem Jorda Law acceleration factor calculated acceleration factor not like, let alone with the acceleration factor of the Gustafson's Law.
In fact, the top four lock competition task can be extended to the more general case, assuming that there is a lock to protect the serialization time is 1, can be parallelized to run part time on a single core CPU for t, CPU core number of p , then in the p run simultaneously on a task, the total waiting time caused by lock contention is: 1 + 2 + ... + p = p * (p-1) / 2
One of the most time-consuming task time used as: (p-1) + t / p
Use the most time-consuming task that takes time to run in parallel as time, acceleration factor as
S (p) = t / (p-1 + t / p) = p * t / (p * (p-1) + t) (acceleration factor formula under lock contention)
This formula shows that there is a lock in the competition, if a nuclear fixed number of cases, the larger part of parallelized, then the acceleration factor will be greater. In parallel of time is fixed, if the CPU core a few more, then the acceleration factor will be smaller.
Or calculate several practical examples to illustrate the effect of the above formula:
So that t = 100, p = 4, the acceleration coefficient = 4 × 100 / (4 * (4-1) +100) = 3.57
So that t = 100, p = 16, the acceleration factor = 16 × 100 / (16 * (16-1) +100) = 4.7
So that t = 100, p = 64, the acceleration factor = 64 × 100 / (64 * (64-1) +100) = 1.54
So that t = 100, p = 128, acceleration factor = 128 × 100 / (128 * (128-1) +100) = 0.78
As it can be seen from the above calculation, when the number of multi-core to a certain time, acceleration factor not only increase but decreased, the number increased to 128 nuclear, acceleration coefficient of only 0.78, not as in the single-core CPU running speed.
The above example, the lock protection resulting serial code is invoked when the task starts, in fact, a serial code lock protection and other missions in other parts of the call is the same.
Competition phenomena lock type tasks in practical situations are very common, such as server software, usually each client processing tasks are equal, if a lock on the inside, then it is likely to cause the above said acceleration factor With an increase in the number of CPU cores and the phenomenon of decline.
Previous server software generally runs on a dual CPU or quad CPU machine, so acceleration factor resulting decline in lock contention is not obvious, after entering the multicore era, with the increase in the number of CPU core, this issue will become very serious, so multicore Times of programming presented new challenges. Programming ideas previously put under multitasking on multicore programming is not necessarily feasible.
So simply that previous multicore programming and multi-tasking programming or parallel computing equivalent words are unrealistic, speaking serialization problems that article put forward some countermeasures settlement, but those have yet to be the industry's continued efforts Countermeasures in order to do it.
Of course, due to the current market sales of multi-core CPU or dual-core and quad-core, until the 16-core CPU more mass to enter the market and possibly for several years, I believe lock industry in the next few years be able to face other tasks on the Competition to find a better solution.
The Author: Wei-Ming Zhou, Freelance, in the software industry more than ten years. Currently focused on the content of software testing, multi-core programming, software design and other basic aspects. Written "multi-task under Data Structures and Algorithms," a book, and is currently writing "Software Testing Practice," a book, plans to write a multi-core programming books in the near future.
Reply:
1) multi-core parallel processing needs to lock data. Is single Nucleation can save some time and do not need to lock code?
2)
So that t = 100, p = 4, the acceleration coefficient = 4 × 100 / (4 * (4-1) +100) = 3.57
So that t = 100, p = 16, the acceleration factor = 16 × 100 / (16 * (16-1) +100) = 4.7
So that t = 100, p = 64, the acceleration factor = 64 × 100 / (64 * (64-1) +100) = 1.54
So that t = 100, p = 128, acceleration factor = 128 × 100 / (128 * (128-1) +100) = 0.78
These data can not be used to illustrate the multi-core itself, the problem lies in the time t = 100 the number is too small, if taken t = 10000
See what happens:
Order t = 100, p = 4, acceleration factor = 3.995
So that t = 100, p = 16, the acceleration coefficient = 15.625
Order t = 100, p = 64, acceleration factor = 41.984
Order t = 100, p = 128, acceleration factor = 48.751
Here 128 nuclear has shown great efficiency! Thus, there can be noted that:
If the time is not long serial processing of data, use of multi-core parallel processing, and will not necessarily significantly reduce processing time, and may even increase the time! If the time series data processing is not very long, there is no need to parallel processing of many nuclear, because the efficiency is not linearly increase efficiency, serial processing of data corresponding to different times, there will be an ideal number of nuclei.
3) In any case, here not because of the poor (the case) the efficiency of the parallel processing of data and a negative efficiency of the entire value of the multi-core, in fact, a lot of multi-core parallel processing also can not directly relevant, no lock to protect data.
4) Maybe I'm on the "lock" different understanding with the author? Here the "lock" refers to multi-threaded programming in the "lock" or refers to multi-core internal processes required for the operation and use of any special coordination "lock" (in this regard I do not know ^ _ ^)?
Reply:
Sorry, the above data (t = 10000) entered incorrectly, correct as follows:
These data can not be used to illustrate the multi-core itself, the problem lies in the time t = 100 the number is too small, if taken t = 10000
See what happens:
Order t = 10000, p = 4, acceleration factor = 3.995
Order t = 10000, p = 16, acceleration factor = 15.625
Order t = 10000, p = 64, acceleration factor = 41.984
Order t = 10000, p = 128, acceleration factor = 48.751
Reply:
top!!!!
Reply:
It said "spin lock."
Reply:
The landlord does not know how to sell books, I also want a book.
Task management Time = Time + computation time
Acceleration rate = original computation time / (task time × auditor)
Where the original computation time is fixed.
Management time, the smaller the acceleration rate.
When managing time & gt; when computing time, accelerate the rate of less than 1. In this case, each task waiting time to unlock greater than computation time.
The problem of declining acceleration factor of lock contention lead author says, in fact, does not exist. Server-side processing of a document sheet Processed 10,000 units (with lock as a unit consuming) or more, relatively speaking, very little administrative overhead. And it has a large number of documents, as well as a single file on a different piece of the server; a plurality of service end while reading a file a document with the possibility of very small pieces.
Reply:
Add that, for the read-only file, it can not be locked.
Reply:
mark
Reply:
mark
Reply:
Linux multicore debugging environment- Intel + Totalview combination
!Currently, in the software development industry, a variety of excellent performance debugging tools abound. However, most of them only support windows environment. Even if we can support linux platform, the operation is also very convenient. Thus, for long-term program to write on linux developers, how to debug it becomes a matter of headache! Intel software and Totalview Debugger is in this case came into being!
Intel software can produce excellent application performance on Intel architecture, and can take advantage of the advanced features of the latest Intel multi-core processors. Combine TotalView Debugger and Intel software debugging tools will set off a revolution under linux!
TotalView Debugger is a debugging tool for linux platform parallel environment, its IDE environment, multithreading (process) debug capabilities, memory debugging capabilities, cluster debugging capabilities are unmatched in the industry!
XLsoft to join Intel, TotalView company on October 30, 2008 held a "multicore debugging Linux environment" free training seminar in Shanghai. We are very pleased to invite you to participate in, and offers free software trial CD!
I. Registration
Online registration page:
http://www.xlsoft.com.cn/TotalView/TotalView_download.asp
Registration Hotline: 021-62128912 / 010-84492749
Registration Email: Marketing@xlsoft.com.cn
Second, Lectures:
1. Linux platform under debugging tools overview
2. Intel Software Features
3. Totalview Debugger Features
Third, talk time:
2008 年 10 月 30 日 (星期四) 14:00 ~ 17:00
Fourth, Venue:
Shanghai Pine City Hotel, 3rd Floor, Hyatt long hall
(Xujiahui Zhao Jia Bang Road, No. 777 Dongan junction, about 15 minutes from Hengshan Road Station)
Fourth, the activity details:
Contact: Juan
Tel: 021-62128916 Mobile: 15000262606
E-mail: kiko.wang@xlsoft.com.cn
Hotline:
021-62128912 010-84492749
More service information, please contact us Marketing@xlsoft.com.cn or contact information.
Shanghai Information Technology Co., Ltd. World-wide software
Shanghai Tel: 021-62128912 Beijing: 010-84492749
Everyone is how to make the PDA connect CMNET network?
I need to make my PDA cmnet connected to the network and the server for data transfer? How can I do it? Is it to dial?
GPRS service has been opened, but not connected.
Reply:
DWORD dwStatus = 0;
HANDLE hConnection;
CONNMGR_CONNECTIONINFO sConInfo;
memset (& amp; sConInfo, 0, sizeof (CONNMGR_CONNECTIONINFO));
sConInfo.cbSize = sizeof (CONNMGR_CONNECTIONINFO);
sConInfo.dwParams = CONNMGR_PARAM_GUIDDESTNET;
sConInfo.dwPriority = CONNMGR_PRIORITY_USERINTERACTIVE;
sConInfo.dwFlags = CONNMGR_FLAG_PROXY_HTTP
| CONNMGR_FLAG_PROXY_WAP
| CONNMGR_FLAG_PROXY_SOCKS4
| CONNMGR_FLAG_PROXY_SOCKS5;
sConInfo.bExclusive = FALSE;
sConInfo.bDisabled = FALSE;
sConInfo.guidDestNet = IID_DestNetInternet;
ConnMgrEstablishConnectionSync (& amp; sConInfo, & amp; hConnection, 10000, & amp; dwStatus);
Reply:
Thanks pknife (Romantic Swordsman) !! I used C #, can not say at C # on how to use?
Or give me a C ++ code integrity can perform it? C ++ I can read a little bit, I do not know how to do the project.
Reply:
It is not, you can manually connect
I ask a few questions about thread inside the critical region of the set
Setting critical region can be used:
Monitor.Enter (this);
// Thread Safety Code (1)
Monitor.Exit (this);
But I like this set up, when debugging still found there two threads simultaneously entered a "thread-safe code (1)" snippet inside, why ah? Wherein the parameters, the significance is not to say that this object before Exit (object) statement calls are not allowed to visit? That is precisely, this function is locked in a code segment or lock an object, for example, if I have another function of this class and there was
Monitor.Enter (this);
// Thread Safety Code (2)
Monitor.Exit (this);
So if I go into a thread-safe code (1), then the thread can not simultaneously enter the security code (2)?
Reply:
Critical area
Advantages, simple, commonly used, easy to implement algorithm
Disadvantages: synchronization overhead is relatively large, the use of critical code segments, it is easy to enter a deadlock state, because they can not set the timeout value while waiting to enter the critical section.
If possible, this should InterlockedIncrement very small overhead of a function.
Reply:
InterlockedIncrement? C # can be used?
Reply:
guanzhu
Reply:
If multiple threads of a multithreaded application defines the critical area, the visual realization of the critical region of the "semantic", if optimistic concurrency semantics, there is no competition between the two critical data areas, the critical region where the two threads can At the same time it enters the critical region. If the serial semantics, whether or not there is competition between the critical area of data, while only one thread to enter the critical region.
CAB package using VS2005 making use of intelligent devices on three issues
Members experts:
Brother is currently learning to use the equipment to do VS2005 to MOBILE5 CAB package. But he wishes to use it, found three tricky questions, I implore you master exhibitions!
1. CAB bag can be hung in the setup.dll of Install_Exit function can not be used CDialog :: DoModal () to display the dialog box. But the use of MFC MessageBox normal.
2. CAB package MULTI_SZ type of registry editing, whether there is a valid way to write multiple lines VALUE?
3. With CAB package installation, specify the installation path is always displayed in the interface. Directly run Setup.exe installation by synchronizing the interface does not appear. How to achieve from the CAB installation package can reach and remote Setup.exe to install the same effect (that does not appear to specify the installation path of the interface) do?
Thank you first!
Reply:
Top-bit
Reply:
The first question, setup.dll There is no support for MFC, so ... In addition, MessageBox function instead of MFC, but the API ...
Reply:
I have encountered this problem Ah
How no one good solution A
Use rda access sql server, multiple operating anomalies, 8007000e
I come through on the pda rda remote access, multiple operations database exception, show 8007000E, can only exit the program, there is no one encountered the same problem, help! Using ole db.
Reply:
Yes, the language used is c plas plas
Reply:
You want to download the data is how much Argentina? It may be insufficient memory.
Reply:
Reference bottom that reply
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=350214&SiteID=1
Reply:
Thank you. It has been resolved. RDA operations can quickly Yeah, I used about 2 seconds when an operation can not hurry?
Help, ToolTips can not get out!
ToolBar system comes with the program have ToolTips, ToolBar how I created not?
In addition to setting a toolbar button to resource properties Prompt, other work needs to be done?
Reply:
Note: I have tried in eVC and VS2005, PPC and WinCE before.
Reply:
The toolkit does not seem to
About with C # GPRS network connection problems, thank you!
Now there on Windows mobile 5.0 development project, which requires the use of UDP data transfer. My problem is I do not know how to use C # code, dial-up connection GPRS network ???
I experimented with, if you are using HttpWebRequest make HTTP requests, PDA will automatically connect to the mobile GPRS network (cmnet). Then I opened my own udp program can transfer data to the specified ip address of the server port.
But I do directly Udp data transfer, PDA will not automatically dial a ....
I am looking for some information, class methods with RAS dial-up, and I tried, but without success.
Give some specific code? Some information is also OK! Preferably in C #.
Reply:
His top! Thank you, help!
Reply:
Nobody look at Oh ... help!
Reply:
No one encountered this problem, or are too lazy to go back ah? Help!
Reply:
You can use the function to establish a GPRS connection ConnMgrEstablishConnectionSync specific usage I have a transplant you look under C in C # on it
DWORD dwStatus = 0;
HANDLE hConnection;
CONNMGR_CONNECTIONINFO sConInfo;
memset (& amp; sConInfo, 0, sizeof (CONNMGR_CONNECTIONINFO));
sConInfo.cbSize = sizeof (CONNMGR_CONNECTIONINFO);
sConInfo.dwParams = CONNMGR_PARAM_GUIDDESTNET;
sConInfo.dwPriority = CONNMGR_PRIORITY_USERINTERACTIVE;
sConInfo.dwFlags = CONNMGR_FLAG_PROXY_HTTP | CONNMGR_FLAG_PROXY_WAP | CONNMGR_FLAG_PROXY_SOCKS4 | CONNMGR_FLAG_PROXY_SOCKS5;
sConInfo.bExclusive = FALSE;
sConInfo.bDisabled = FALSE;
sConInfo.guidDestNet = IID_DestNetInternet;
if (ConnMgrEstablishConnectionSync (& amp; sConInfo, & amp; hConnection, 10000, & amp;! dwStatus) = S_OK)
{
return TRUE;
}
return FALSE;
Reply:
mark
Reply:
mark
Reply:
mark
In ppc 5.0 How do I get software startup path.
Normal should be: string sPath = Application + @ "\ Data.ini";
.Ppc but not used.
Reply:
Themselves:
return System.IO.Path.GetDirectoryName (System.Reflection.Assembly.GetExecutingAssembly () GetName () CodeBase.ToString ()..);
Reply:
VC ++ I to know, C #, not help, huh !!
Reply:
string filepath = System.IO.Path.GetDirectoryName (System.Reflection.Assembly.GetExecutingAssembly () GetName () CodeBase..);
Reply:
string filepath = System.IO.Path.GetDirectoryName (System.Reflection.Assembly.GetExecutingAssembly () GetName () CodeBase..);
VS2005 making CAB installation package Chinese deal with the problem
Make good press installation package, the "Start" is displayed on the PDA moblie system menu of the program name, then when the English, Ok no problem, as the name to be displayed for the Chinese, the program will not compile passed, and tips:
Warning: Section [RegKeys] has no data
Warning: Section [DefaultInstall] key "AddReg" - there are no section entries to process
Error: The INF file contains Unicode characters that could not be converted correctly to
Prawn, how to deal with Chinese display problems
Reply:
attention
Reply:
How nobody ah
Reply:
Converted to Unicode
Reply:
So this is a tool set, but I have the solution. Specifically go to my blog to see, there's an article about this. http://www.cppblog.com/kuronca
Reply:
I just solve this problem, ha ha
You can use other tools to generate CAB file.
I am using WinCE CAB Manager
Reply:
You can not hit the first vs2005 cab packages contain Chinese characters, then use WinCE CAB Manager to modify the cab package. I've tried. If you do not understand, you can contact me qq: 42258745.
Reply:
In Setup.dll in his own generation .lnk file, create a shortcut
Reply:
WinCE CAB Manager can be used to modify the generated good cab package
Reply:
You can not use Chinese
Reply:
In Setup.dll SHCreateShortcut create a shortcut with Chinese names, and then placed in the appropriate directory
Reply:
We talk about this issue in the end is how to solve?
Reply:
I am using WinCE CAB Manager
Reply:
This may be a VS2005 problem is not with the Chinese.
Shortcuts you first in English, labeled cab, after using WinCE CAB Manager into Chinese, then sava on the line.
Reply:
But using WinCE CAB Manager to save a word not change what will become large 200k ah! Without changing the size of the case what other ways?
How to give media player for the skin
VS2005 do with a Pocket PC in MP3 player, you do not want to display WMP interface, want to use their skin, looked WMP SDK in the presentation or do not understand, exactly according to achieve: Now you have all the pieces put together .
Create a compressed file with a .zip file name extension. This compressed file contains your skin definition file, bitmaps, and any digital media files you want to include. Rename the file so that it has a .wmz file name extension. Then double- clicking your compressed skin will start it playing. The problem is how to put the .zip file into a .wmz it? do not understand, please enlighten oh
Reply:
up
Reply:
Xiongtai how to do, can send copies to me, thank you !! brother, ss128 @ 163.com
WAP-paid Employment Development Engineer
WAP development engineers
Responsibilities
System design and development
1. WAP products2. The needs analysis and be responsible for the system design
3. Complete the development tasks and the corresponding documentation
development process in accordance with the requirements of4. the project members to maintain adequate communication, problem solving, sharing experiences and lessons learned
5. leadership, assist other technical personnel to solve difficult problems arise project
Requirements:
1. Bachelor degree or above, computer-related professional
2. Can write basic technology development documents and related technical reports
3. Proficient jsp, java programming, proficient sqlserver development, proficient in html, dhtml, xml, wml, javascript
4. proficient WAP architecture, WAP communication protocol, familiar with WAP1.2 / 2.0 protocol specification, there are architectural design experience is preferred
5. Familiar apache, resin, tomcat, weblogic
6. SP WAP products, free WAP websites and other wireless applications development experience is preferred
7. familiar with Struts, spring, hibernate these frameworks
8. Learn WAP gateway network access and related knowledge, understanding WAP system operating mechanism, WAP project development experience is preferred
9. have a good team spirit, obey the overall situation, can work under pressure
10. honest, rigorous thinking, work initiative, there is a strong independent innovation ability and problem solving skills
The company is a mobile game company, due to business needs an urgent need to recruit the relevant wap developers, this post is full time, have the ability to talk about treatment, if the candidate or would like to know the specific situation, please e-mail or direct contact gengrenjie@gmail.com msn: gengrenjie@hotmail.com, no error wap development experience interference
About synchronization of j2me
Can J2ME have synchronous function?
From the Internet to find a better data, I said very clearly, I would like everyone to provide some information, the next first Thank you.
Reply:
Friendly UP! ! ! !
Reply:
I also want to know, thank LZ.
Reply:
There is further information, please come back to talk about concern ~~~~
Reply:
You said synchronization synchronize the phone with the computer it?
You can look at Syncml.
How to make your own creation by .cpl file property page in a window, with the control panel window as standard .cpl style?
In my own .cpl file created by the properties page of a modal window, but its style and the control panel is completely different to other windows.
Ask, how to make your own window, .cpl file property page is created, with the control panel window as standard .cpl style?
Reply:
Examples of the SDK codes,
C: \ Program Files \ Windows CE Tools \ wce420 \ POCKET PC 2003 \ Samples \ Win32 \ Mybacklight
You can take a look
Subscribe to:
Posts (Atom)