Way To Distinguish Hyperthreaded Processors From Non-hyperthreaded Processors?

Aug 18, 2011

Is there code or a way to distinguish Hyperthreaded processors from non-hyperthreaded processors? I know how to detect hyperthreading in general But this is whether or not a logical processor has it but not specific processors.

View 1 Replies


ADVERTISEMENT

Coding For Multicore Processors?

May 27, 2010

What i have heard is, that a program dont get much faster on a dual core (or quad core) than on a single core processor, because windows assigns the program to just one core. (but still a little faster because other programs run on the other cores instead or something like that).And if you want to exploit the power of multicores, you have to code in a way so that different calculations get sent to different cores simultanuasly and then gather the result afterward.First of, is this correct? And if so (or if not so) is it possible to program in vb to exploit multicores. I mean can you create 4 threads and assign them to each core, or does this require some heavy C++ coding?The reason im asking is because and application i have created uses biometric identification (fingerprints) and this requires somcalculations, the more fingerprints that gets stored. Then if i somehow could make it use more codes, maybe this will be a little faster?Is this possible in vb, or would i get way in over my head for trying to work with th

View 1 Replies

.net Timer With Windows 7 Dual Processors?

Apr 14, 2010

I have been writing visual basic and vb .net applications for years and have come across this problem with the timer component under Windows 7 32bit on dual core Intel processors. This problem only occurs with Windows 7 running on a dual core processor, single core and under the virtual pc on any processor works.

I have attached a test program to show this problem. The program uses 2 timers to count down to 0. It does not matter what type of timer component I use system.timer.timer or system.windows.forms.timer. I read the system.timer.timer may fix this problem so I changed the program to use it but it did the exact same thing. Left it in anyway.

The program: Timer1 is set to a number of ms for a given amount of time say 150000 for 150 seconds and started. The timer will expire correctly. At the same time a second timer Timer2 is set to 1000 ms for a count down display to 0. Timer2 fires and the count is updated. This happens and everything looks fine. When Timer1 fires I disable timer2 so it will stop counting down. Timer2's countdown is at 2 instead of 0. It is firing slow. If I increase the value of timer1 to say 500 seconds timer2 is behind by 6 seconds. These amounts are the same for the 2 very different computers I ran this on but both are dual processor systems running Windows 7. The exact code works correctly on Windows Xp on the same processors and works under Windows 7 on a Pentium 4 system.

[Code]...

View 16 Replies

VS 2005 Controlling System Processors?

Jul 29, 2009

I want to control all the processes of my system. for instance, whenever i start a new process, my application has to ask me whether to allow it or not. I should have control to either pause, resume or terminate the process. for eg,if i start IE, my application should ask whether to allow the process or terminate it. if i provide "allow", the process should run, either it should terminate. Can i use "process" control to do these stuffs? Or do i need any API?

View 1 Replies

Timers Under Windows 7 Dual Core Processors ?

Aug 27, 2010

After I upgraded from Windows Xp to Windows 7 on any dual core cpu machine my programs that use a simple timer function run incorrectly. The program works with the exact same hardware under Windows Xp and Windows Server 2003. I am using Visual Studio 2005 to write .NET Visual Basic programs that use 2 timers to count down. The first timer, timer1, is set to a value say 150000 ms (150 seconds). The second timer, timer2, is set to 1000ms (1 second). Both timers are enabled one right after the other from a button click event and begin. The timer2 routine running every second updates a label counting down the seconds. When timer1 fires it disables itself and exits. Timer2 also checks to see if timer1 is still running if it is not it will stop. Under Windows Xp and Windows Server 2003 the resulting count in the label is 0 when timer2 detects timer1 has finished. Under Windows 7 when timer1 stops timer2 is not at 0 it is 3 for 150 seconds and gets larger the more timer1 is increased. It appears to me timer2 is not being fired every 1000ms as it was under Windows Xp.

I have included the Visual Basic code below. If you want to test it just run Visual Studio and create a new project. Put the buttons, numericupdown, and labels in your form and past my code into the correct buttons. I have used these type of timer events for years without any problems unit Windows 7. Windows 7 on a single core Pentium 4 with hyperthreading turned on works fine. Windows 7 on a dual core E6500 fails, Windows Server 2003 works.

Public Class Form1

Dim I As Integer

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[CODE]...

View 2 Replies

Using All Cores Of Multi-cores Processors In VB 2010?

Mar 6, 2012

If i want my program to exploit all cores of a processor do i need to add extra code? If yes do you know a link to a tutorial that explain how to do it in VB 2010?

View 10 Replies

C# - Distinguish Between The Scanner And The Keyboard

Apr 12, 2011

I have a barcode scanner connected to a PC that working with a c# program.now i want to distinguish between the scanner and the keyboard which one is sending data to my program.

somebody said this to me in another topic(but i can't do this yet): basically you can configure the scanner to send some characters that basically tell the computer "hi, it's me". When you see those characters in your input stream, you know the information is coming from the barcode scanner, not from something the user typed on the keyboard. Did you check the manual that came with your barcode scanner? It should have more information about this.

View 2 Replies

Distinguish Files From Directories .net?

Oct 15, 2011

I want my to create an explorer like application. What control should i use to show the contents of a directory.I tried listview and listbox. Unfortunately i was unable to add items in a listview using the function getdirectories("D:")I managed to do so with listbox control. But how can i distinguish whether the selected entry is a file or a directory. Code snippet is given below :

Private Sub ListBox1_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.DoubleClick
<strong>sel = ListBox1.SelectedItem</strong>
ListBox1.Items.Clear()

[code]....

I want that if thesel is file, then it'll be open in its default application,i.e. using system.process.start(sel.filetype).Else if sel is a directory then the directory will open.

View 2 Replies

Cannot Distinguish If DataGridView Is Enabled Or Disabled

Sep 7, 2010

Put a Datagridview on a form, fill it with data. dgv1.enabled = True and dgv1.enabled = False are almost the same look to the eye unlike other controls (textbox,combo, listview, etc ...) where there back color changed to light grey and you can distinguish if that control is enabled or disabled but not for Datagridview.

View 2 Replies

How To Distinguish Between Copying Class Data And Pointer

Oct 2, 2009

How do I distinguish copying data and a pointer when using a class?E.g.
public class myparams var1 as integervar2 as intergerv3 as stringend classmyvar as new myparamsmyvar.var1=1myvar.var2=2myvar.v3 ="hh"othervar as new myparams

I want to copy all of myvar data into othervar in one go.. without doing
othervar.var1=myvar.var1 etcusing othervar=myvar"
Looks like its just copying the pointer of myvar into othervar? Can I copy all the class data in one go? VB2008 user

View 1 Replies

Way To Distinguish Between Internal (local) Fixed HDD / External (USB) HDD?

Jun 13, 2009

I'm using GetDriveType function to determine the drive type.the function works fine, but not with external HDD it returns 3 or "fixed" which confuses me!! is there any way to distinguish between internal (local) fixed HDD and external (USB) HDD?

View 1 Replies

C# - Distinguish Types With Identical Fully Qualified Names?

Jan 8, 2010

The scenario is I would like to be able reference two similar 3rd party assemblies (e.g. assem1 and assem2) which both define a type with the same fully qualified name (e.g. Example.MyType). Is there any way to distinguish between these and refernce them seperately? I believe the answer is no but confirmation or correction would be handy. Edit: Answered for C# 2.0 and higher below but need an answer in VB.Net 1.1

View 2 Replies

Combobox Change - Distinguish Between User And Code Update?

Oct 21, 2009

title is a bit vague. Is there any way I can tell if it's the user or the code that's altered a combobox? I want certain things to happen when a combobox is updated, but I don't want them to happen when the code is altering the combobox at runtime, only when the user selects something out of them. Unfortunately, if I use the 'Selectedindexchanged' option that triggers when I change the contents in code too. I've tried disabled the combobox while I update it, but that doesn't seem to work. Any way to detect user input only? My combobox is drop-down only by the way, so it's only if they select an option - they can't type anything.

View 10 Replies

Distinguish Between Built-in Methods/property/events And Mine?

Jun 13, 2012

When inheriting class or control e.g. ListView, TreeView, etc..., what is the best way to distinguish between built-in methods/property/events and mine?Currently, i start my methods/property/events with "aa" in order to make them at the top of auto complete list.

View 1 Replies

Distinguish Between Text And Graphics Inside A Scanned Image?

May 9, 2011

how would you identify the shape of text like inside a scanned document containing text and graphics?In a perfect world,users would never enter data in the wrong form,files they choose to open would always exist and code would never have bugs.[URL]

View 5 Replies

Inheriting Class Or Control - ListView, TreeView - Distinguish Between Built-in Methods/property/events

May 15, 2012

When inheriting class or control e.g. ListView, TreeView, etc..., what is the best way to distinguish between built-in methods/property/events and mine?

Currently, i start my methods/property/events with "aa" in order to make them at the top of auto complete list.

View 14 Replies

VS 2008 - Code To Distinguish The Picked Process From Process List?

Apr 24, 2011

i want a code that if a process that i picked is no match in a process list that process that i picked will start

View 4 Replies

Distinguish Between MS Access Fullversion With Access RunTime?

Jul 27, 2009

My application is built to scan MS Access database in vb.net 2005. MS Access DB is opening when Access Run-Time (But no Full version of MS Access) is installed in the system as well. But showing error while scanning through our Tool.Need only Full version of MS Access.To Identify, whether the required application (like here we need MS Access Full version) is installed or not at the time of installing our Tool(Through MSI).Is it possible to identify MS Access Full version with Run-Time while installing the Tool?

View 1 Replies

Distinguish Between Numpad 4 + Shift And Right + Shift?

Dec 15, 2009

In my keydown event handler, when Keys.Numpad4 is pressed with Shift, I get the same keycode code as for Keys.Right. Is this by design? How can I distinguish between the two?

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved