|
Hello all,
I have a multi-core PC. How do I use both cores at the same time ?
Is it sufficient to start a second thread ?
Using Visual C++
Are two window procedures executed on different processors ? I guess not : I assume that as long as there is only one thread in an application, it runs the Window procedures sequentialy.
Thanks in advance for your help
Jean-Marie
|
|
|
|
|
Hi,
the operating system will look at all threads from all processes; any thread that
is not blocked (waiting on I/O completion, on timer timeout, ...) is "ready" and
a candidate for execution. These get ordered by priority, and the highest N are
selected to become the "current threads" on hardware capable of running N threads
concurrently (as in an n-way multi-core).
Each Control needs to be handled by the thread that created that Control, and normally
Controls are linked tohgether on Forms and the like, so typically they all get
serviced by a single thread, the GUI thread.
An app with only one thread will benefit from a multi-core only by the fact that
the remaining Windows activities can be executed by the other parts of the multi-core
(remember those dozens of processes and threads outside your app!).
To really take advantage of a multi-core you must either have several heavy-duty apps,
or have an app with several well-organized threads (so two or more threads
are likely to be "ready" at the same time).
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Hi!
I have been googling since yday, and even tried using all combinations, but had to ping you experts for some serious help!
How to I set properties for COM port using DOS in Win XP?!
No it may sound simple enough to use the mode com1:4800,n,8,1 and whoala! but nope i need to change the extended props like Timeout, XON/XOFF, CTS handshaking, DSR handshaking etc.
I tried mode com1: 4800,n,8,1,on,off,on,on,off,on,on but DOS duzn like the command and says "BAD COMMAND"!!!
Pls help its freaking me out!!!! I would really appreciate ur help!
------------------------------------
Vision is the ability to see the invisible
|
|
|
|
|
There are no options for this. All of this is controlled by the application opening the port for communication. There settings you see merely set defaults that each application can either use or ignore and set their own when they open the port. Just about all applications just ignore what you set in the Device Manager or using MODE.
|
|
|
|
|
Well, what properties are set using an application are reset to the defaults when the system is rebooted. However the mode command in DOS helps set the properties for the COM port and written straight to the registry.
I found out the way to change these settings, althought the change was trivial!
mode com1: baud=4800 parity=n data=8 stop=1 to=ON xon=OFF odsr=ON octs=OFF
and the properties are changed for com1!!
Thanks for the help!
Cheers!
------------------------------------
Vision is the ability to see the invisible
|
|
|
|
|
You actually have an application that still uses that old stuff?
|
|
|
|
|
Well, I haven't been able to find information anywhere else. I've tried Google, etc. Over the past two weeks or so, my computer has been acting strange. First, it would freeze after running idle for so long, and the light on the computer that indicates 'Busy' would stay on. I figured it was because I only had 256MB RAM and was using VS2005 Pro, Photoshop CS3, and other similar applications.
So I upgraded to 1GB RAM. Well, things load quite a bit faster. But at times my computer will still run EXTREMELY slow. Even when I first turn it on, open WinAmp, open Yahoo! Messenger, and open Internet Explorer. When I look in the Windows Task Manager, I see multiple instances of applications running. But they're like this:
'Winamp.exe'
'Winamp .exe'
'Winamp .exe'
And it's like that with a few applications. When I look in the application folder, those files exist. But the '* .exe' files are always several KB smaller than the actual application .exe. When I try to delete the files they will stay gone ... until I run the program again, and those files are right back in the folder, and right back in Task Manager. And when I attempt to close out one of the duplicates in Task Mgr., it closes the entire application, along with every 'instance' that's running.
Has anyone seen this before? I have no idea what's going on. LoL. But it's REALLY annoying. I'm thinking some sort of virus, though hoping not. But that's what it sounds like to me. =P
Thanks in advance,
Matt U.
P.S.
System Specs:
Windows XP Professional SP2
1GB DDR 333MHz RAM
2.6GHz Pentium 4
|
|
|
|
|
It does sound kind of weird, with a system of that specs you shouldnt really have any speed problems.
I can say that ive never seen or heard of multiple processes with a space before the file extension, so i dont know what it is. But i guess it could be a new way for malware (spyware/virus) to try hide within known processes as much as possible. But then again if the spyware is trying to hide, then it should'nt affect system perfomance. Since the when you delete the ' '.exe files they come back after re-running the main program i would really think thats it some type of malware, thats placed itself inside the main original .exe. and creates more of itself to try to run more (and infect more files). (the basic way of how a virus spreads)
Try using some varous scanners like the following:
Trend Micro House call (online free scan against virus and spyware)
Lavasft ad-aware SE personal (free spyware/adware scanner)
s&d search and destroy (free spyware/adware scanner)
You might also want to install something like avast (free for home use) and do a pre-boot scan. In other words do a virus scan before windows logon, and therefore before the virus loads (hopefully)
(you might want to install avast in safemode and then directlyh after perform a boot scan. note that you will have to re install avast in normal mode for it to be able to create the services to work when a user is logged in)
It could also be time for a clean window re installation, cause as you might know windows is kind of self degrading (time bomb).
Hope this helps
//Johannes
|
|
|
|
|
Malware, most definitely. Try to run a scan from an unaffected system (Boot a Live-CD with anti-virus software - i think both UBCD and EBCD (Ultimate and Emergency Boot CDs) offer a scanner, but I cannot be sure.
Possibly Brontok.CV:
http://www.sophos.com/security/analyses/w32brontokcv.html[^]
Cheers
Sebastian
Cheers,
Sebastian
--
"If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
|
|
|
|
|
Well, I found out what the problem was with the slow performance. I actually began to receive BSoD's quite often. Sometimes I could sit at the computer for three or four hours, and sometimes only three or four MINUTES are Windows loaded, then the BSoD would appear. It was always something different. Two different times it mentioned 'sysaudio.sys' and 'win32k.sys'. Other times it didn't mention a specific filename.
I found out that it was my stick of RAM. My computer is supposed to take 333/266MHz DDR. The RAM I had was 400/333MHz. But I don't understand why it was giving me problems because I installed the RAM about a week ago. I didn't have the problem immediately after installing the 1GB RAM.
But today I replaced the 1GB (and returned it to the store) with the original 256MB RAM that originally came with the machine. My computer has been on ever since I did that, and I haven't had a single problem out of it. Well, no problem except for slow performance due to only 256MB RAM. =P
I don't know what the deal is with the space between the filenames and their extensions. I installed my anti-virus (Panda Titanium Anti-Virus 2008), updated the virus definitions, and immediately ran a complete system scan afterward. It didn't find any problems except for a stupid adware object. So I don't know what is going on with it.
Thanks for the help though.
|
|
|
|
|
I really hate to say it like this, but:
Are you WILLINGLY ignoring the fact that your computer is infected with malware? Are you oblivious to the fact that there IS MALWARE THAT CAN HIDE FROM AV-SOFTWARE OR DISABLE THE SOFTWARE by manipulating the AV-configuration?
The deal with the space between the filename and the extension is that you are infected. You need to boot the computer into a seperate system. I suggest Knoppix. Then download some AV-software, along with recent sigs, THEN rescan. Then use a different software. Check your WIN.INI, SYSTEM.INI, Registry etc. for autostarts.
Dammit, don't be a security risk, I beg you. You're supposed to be a professional...
Cheers,
Sebastian
--
"If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
|
|
|
|
|
Hi all
m using Windows XP Professional. I lost Folder option menu from Tools menu so i format all system with fdisk then i install XP but now When i click on
Tools >
Folder Options >
Viewtab >
show hidden file and folder system restart
my system gets restart
same thing happen with my another system also
Is there any virus or spyware
The Stifler
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
My software requires the configuration of a certain group policy setting. This setting can be found within gpedit.msc at "Local Computer Policy\Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment", and is called "Deny access to this computer from the network". I am looking for an automated way to configure this setting, but haven't had much luck. I've found other group policy settings in the registry, but this one seems to be stored elsewhere.
I'm not picky about the solution, as long as it can be performed by an installer.
|
|
|
|
|
hi all
i am using windows XP Pro.
when i start command prompt from RUN or from accessories it get flick and command window gets close.
please tell me what i can do to start that command prompt
The Stifler
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
Open your WINDOWS folder, sub-directory, system32, and locate, cmd.exe
click
|
|
|
|
|
no
same problem there also
The Stifler
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
Seems like your being access denied. try it in safemode if its a malware problem.
Otherwise try doing start-run-"command.com"
its a simpler version of cmd.exe
//Johannes
|
|
|
|
|
Can anybody help me how to hack the PPPOE Internet connection setup configurations in windows vista.I want to provide the input paramers through an application which is developed in VB 6.0 or in .Net
thanks
|
|
|
|
|
I just read in a Windows Internals book that max no. of Processors suppourted By Windows XP Professional is 2
IS this true ???
I have Quad Core Running Windows XP Professional Service Pack 2
That I just bought from GateWay does that mean it only using 2 of processors
Thankx
|
|
|
|
|
For licensing purposes, Windows counts CPU sockets, not cores or hyperthreading pipelines. You're fine.
|
|
|
|
|
You mean actual cpu chips on the motherboard
thankx
|
|
|
|
|
|
You can test that easily with a simple app:
launch N threads (N will vary), each thread performs the same lengthy calculation that does
not stress the memory, disk, network, it just stresses the CPU; now measure elpased time t(N).
if t(1)==t(2) < t(3) then you are running on two CPUs (or two-way hyperthreading)
and not on 4 CPUs.
|
|
|
|
|
|
Hello!
I have installed Microsoft Frontpage Server Extensions for IIS 7.0 in Vista Ultimate. However I have faced with the following problems. If you have already solved the similar problem in your OS, would you please guide me how to solve it.
1. Primarily I want to develope web sites with Microsoft Sharepoint Designer (MSPD). MSPD doesn't use Inetbup. It has deployed the web sites under a different directory but I want to be able to use Inetpub directory with MSPD.
2. I am not able to process any asp files with MSPD because it says that it requires a web server!
3. If i try to open a web site under inetpub, It doesn't open the pointed site specifically but opens the wwwroot and brings all the other websites under main root.
4. When I try to create a website with MSPD under intetpub, It rejects so it doesn't create!
Any help will be appreciated. THANK YOU!
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|