For Loop CPU 25% Single Core

Oct 15, 2010

For loop CPU 25% single core

View 6 Replies


ADVERTISEMENT

Is Running Multiple Threads Faster Then A Single Thread On A Single Core Cpu

Dec 23, 2009

Say I have a code with 3 methods that do some pretty intensive work. Would executing these methods on 3 seperate threads be faster then executing them one after the other on a single core cpu? And what if it's a dual core or HT?

View 8 Replies

Make A Code That Sends One Application Or Program In 1 Core And Other Application In Other Core?

Jan 29, 2010

I'm using VB 2008, and I have a dual core computer.Is it possible to make a code that sends one application or program in 1 core, and other application in the other core?

View 1 Replies

Using Timer In Do Until Loop - Putting Single Variable Into Label

Mar 11, 2010

I'm trying to use the timer (not a Timer object) in a Do... Until loop. I want the loop to put a single variable into a label. When I do this it works and puts the value into the label (lblOxygenReading):

If btnGetOxygen.Text = "Get Oxygen Reading" Then
Select Case True
Case rdoColorWhite.Checked
strCurrentColor = "White"
Case rdoColorRed.Checked
[Code] .....

It goes through the Do loop and the For.. next loop but doesn't change the label. Visual Studio doesn't show any errors when I'm writing the code, but when I run it, it hangs somewhere.

View 1 Replies

VS 2008 - Get Rectangles In Area And Loop Through Every Single Position

Dec 26, 2009

I want to be able to click and drag the mouse over the picturebox to create a selection area and I want it to snap an image to each place on the picturebox that it can. So if I have it set to snap to 50 pixels, and I select the points (50,50) - (100,100) I should get back 4 points: (50,50), (50,100), (100,50), and (100,100). The thing is though, It can't loop through every single location.

View 2 Replies

Using More Than One Of Cpu Core?

Feb 9, 2011

i have intel core quad cpu but my program cant use more than one of cores(it use 25% of cpu power but i want use 50% and more).

affinity is "<All Processors>" and all of cores are selected.

is there any way can use more than 50% of cpu power.

View 6 Replies

Set A Certain Thread To Run On The 2nd Core?

Dec 21, 2009

how i can set a certain thread to run on the 2nd core for eg...

View 8 Replies

Possible To Split Up Threads (currently 6) So That 3 Run On Each Core?

Oct 18, 2011

I have a VB.NET app that spawns several threads for performing XML parsing/database interaction. Only one of my cores (only have 2 currently) is being used right now.I've looked at Task Parallelism in .NET 4 but I need to be able to start a task at different times (not all at once).Is it possible to split up the threads (currently 6) so that 3 run on each core? Also, if I don't want to limit my threads to 6, how can I check CPU/memory programmatically to find out if I can start another thread.

View 2 Replies

Use The Core Audio API In VB 2010?

May 20, 2012

I've been trying, without any luck whatsoever, to figure out how to use the Core Audio API in VB 2010. I started by downloading a wrapper dll located here: [URL]

[Code]...

View 2 Replies

.net - Null Reference Exception DNN Core 5.6.3

Jul 26, 2011

My site has been running fine for sometime now until recently I see in the event viewer a null reference exception in the DNN core:

DotNetNuke.Common.Globals.GetStatus() in

F:BuildsMaintenanceWorkingDirectoryLibraryCommonGlobals.vb:line
1125 at DotNetNuke.Common.Initialize.InitializeApp(HttpApplication
app) in

[code]....

the line 1125 is:

_Status = UpgradeStatus.None

Which is a property of the Globals class and an Enum Also when this happens it doesnt just do it once then sort its self it does it roughly every minute for an hour or so.I made sure all dataprovider.instances are either in a using or a try catch finally or self closing(if the reader is not used)?

View 2 Replies

Calcualte CPU Usage For An X-Core Machine?

Aug 2, 2010

Trying to make a badly archictected system work. In doing so we have ourselves in a postion of shelling mulitple instances of a program and managing the running processes. On startup the shelled program is CPU intensive and we need to limit the rate that we initiate the instances based on the CPU load. How do you calculate the CPU load of a multicore system?

View 1 Replies

Change Priority And Core Using For Each Process?

Feb 24, 2009

How can i change a process using only 1 core instead of 2 cores? Also, how can I set different prioritys to each process?As it does not save the settings which i put to each process in taskmanager on restart, i decided to make a program so i could simply click a button so it would change the settings for each process i want.For example:With a simple button click it changes msnmsgr.exe priority to low and makes it use only the 1st core.

View 2 Replies

Get Core And Memory Clocks Of Gpu Using Win32_VideoController?

Feb 8, 2012

How can i get the core and memory clocks of the gpu using the Win32_VideoController?

View 1 Replies

VS 2010 Adding System.Core?

Feb 5, 2010

Somehow the reference to System.Core got removed from one of my projects, which I think is causing some issues. If I try to re-add it to my references I get a message saying "A reference to 'System.Core' could not be added. This component is already automatically referenced by the build system". I think I need this reference because it is there when I start a new project by default

View 1 Replies

Where Is Microsoft.Office.Core.NewFile

Apr 20, 2012

I'm getting the error below trying to open a new workbook in Excel:

Imports Microsoft.Office.Core
...
Dim myExcel As New Excel.Application

[code].....

View 1 Replies

C# - Multithreading On A Multi Core Machines Not Maxing CPU?

Jul 14, 2009

I am working on maintaining someone else's code that is using multithreading, via two methods:

1: ThreadPool.QueueUserWorkItem(New WaitCallback(AddressOf ReadData), objUpdateItem)

2: Dim aThread As New Thread(AddressOf LoadCache) aThread.Start()

However, on a dual core machine, I am only getting 50% CPU utlilization, and on a dual core with hyperthreadin enabled machine, I am only getting 25% CPU utilization. Obviously threading is extremely complicated, but this behaviour would seem to indicate that I am not understanding some simple fundamental fact?

[code]...

And this is occurring in a recursive function, so the QueueUserWorkItem can be executing multiple times, which in turn then executes exactly one new thread via the aThread.Start

Hopefully that gives a decent idea of how things are happening. under this scenario, should this not theoretically pin both cores, rather than maxing out at 100% on one core, while the other core is essentially idle?

View 6 Replies

Collect Information From Core Temp And Use It As A Variable Within VB?

Dec 25, 2011

collect information from core temp ( how to gain information about the CPU directly from the motherboard or windows E.G temperature CPU name ) and use it as a variable within VB.

View 3 Replies

Thread Affinity In Multi-core System?

Nov 29, 2011

I was going to hijack another, related, thread to ask this, but I figured it derserved its own thread.The question I have is whether or not anybody has done sufficient testing to show whether a mutlithreaded program running on a multi-core system will spread the threads across all available cores, or whether it has some affinity for the core used by the main process (UI thread, or whatever it may be)? The reason I ask is because I remember a discussion over in General Computing where somebody showed that, for at least one case, all the threads were splitting time on a single core of a multi-core processor. I am wondering if that is the typical behavior, or an isolated case?

View 23 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

Evaluates Loop Condition In Do...Loop Statment To Determine Whether Loop Instructions Should Be Processed

Mar 14, 2011

Makes the following statement about the code below:

**"The computer evaluates the loop condition in the Do...Loop statment to determine whether the loop instructions should be processed. In this case, the inputsales <> String.Empty condition compares the contenst of the input sales variable to the String.Empty value. As you know the String.Empty value represents a zero length, or empty, string if the inputsales variable is empty, the loop condition evaluates to True and the computer process the loop instructions. *If on the other hand the inputsales variable is not empty, the loop condition evaluates to false and the computer skips over the loop instructions.

Based on the code I think it is the opposite: ...that while the inputsales value is not empty it should evaluate to true and process the loop and if it is empty it should evaluate to false and skip the loop?

See below.

Option Explicit On
Option Strict On

Imports System.Globalization

[CODE]...

View 2 Replies

.net - Multi-core Processor Pegged Even When All Threads Are Just Sleeping?

Mar 3, 2010

I'm simulating some threading in a Windows Service, and the Thread.Start routine for each of my threads points directly to the following:

Private WithEvents CheckForOrdersTimer As System.Threading.Timer
Private Sub timerCheckForContracts_Tick(ByVal stateInfo As Object)
' Ticks every 5 seconds, then spawns threads until we're at our max
Do

[code]....

the threads aren't even doing anything yet, but with more than two threads running at the same time, my processor (Core 2 Duo 2.4 w/ 4GB) gets pegged and Windows gets really sluggish. According to what I've read, Thread.Sleep shouldn't be consuming any resources at all while it waits, but it may as well be running in a tight timing loop.

EDIT: Per the requests, I've expanded the amount of code I'm using. I was initially doing some database work before spawning each thread, but I've removed it and the processor maximization still occurs with just the code here (and, of course, the OnStart method for the Windows Service.

View 4 Replies

Multi-core Processor Pegged Even When All Threads Are Just Sleeping?

Mar 5, 2012

I'm simulating some threading in a Windows Service, and the Thread.Start routine for each of my threads points directly to the following:

Private WithEvents CheckForOrdersTimer As System.Threading.Timer
Private Sub timerCheckForContracts_Tick(ByVal stateInfo As Object)
' Ticks every 5 seconds, then spawns threads until we're at our max

[code].....

View 3 Replies

VS 2010 Referenced Component System.Core Could Not Be Found?

Mar 24, 2011

When my application loads in Visual Studio 2010 I see this warning. Everything runs ok in it as far as I'm aware but I'm completely ignorant in this area. Could that cause me a problem and is there a way to replace that component? There is also the other warning you see in the screenshot.

Quote:Warning1Namespace or type specified in the project-level Imports 'System.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

I did a search for the entire solution and it didn't turn up any Sysem.Linq anywhere. I looked at every Imports statement in my project and I don't have any Imports System.Linq anywhere unless it's somewhere where Visual Studio's quick find search doesn't see it.

View 4 Replies

Motherboards Do Expose Core Temperatures In WMI / ACPI Thermal Zone?

Jun 7, 2012

I'm currently working on a Visual Basic program that should be able to show CPU temperatures.To do this the cleanest way (in my opinion), I would like to use the Windows Management Interface (WMI) using
MSAcpi_ThermalZoneTemperature.Now, to my understanding, this requires that motherboard (MOBO) manufacture exposes these values to the WMI, which almost nobody actually do, but if they do, a "device" should show
up in the device manager called ACPI Thermal Zone under System Devices (let me know if I'm wrong).

As I would like to test my program and my current MOBO (Gigabyte GA-H67A-USB3-B3) doesn't seems to expose CPU temperatures to WMI (no

[Code]...

View 9 Replies

Querying A Single Column And Displaying All Results In A Single Textbox?

Sep 5, 2010

I am trying to make a list, separated by a comma, of entries from a single column in a SQL database. I have been spending the last several days searching for a way to do this, but every thing I found either didn't work, or wasn't exactly what I was looking for.

The query will pull all the email address that are not null. What I need to know is how to take the result of that query and make it look like this:

email0@address.com, email1@address.com, email2@address.com, etc, etc, ...

I feel like I should know this, but for the life of me, I can't remember nor can I find it in any of the textbooks I have.

I am using Visual Basic 2010 and SQL Server 2005. I also have access to Visual Basic 2005 if needed.

View 2 Replies

SqlCommand Parameter / Replace A Single Quote With Two Single Quotes

Oct 23, 2009

I use SqlParameters when executing database statements. I know that I can replace a single quote with two single quotes... but in the past SqlParameters took care of this for me. I have two projects.. in one, the SqlParameter does this and it handles single quotes fine, in another, it does not and I'm at a loss why (I even copied and pasted the code):

[Code]...

View 9 Replies

VS 2008 Bind A Single DGV Cell To A Single Class Property?

May 7, 2010

I am trying to use the DGV to view various properties from a variety of different class instances. Is it possible to bind each cell individually?

View 9 Replies

IDE :: Core Coding Experience Live Meeting The Visual Studio 2010 Team?

May 26, 2009

Code Coring Experience Live Meeting the Visual Studio Team Visual C# and Visual Basic languages continue to evolve towards feature parity, strive to simplify programming and deployment with the Microsoft Office APIs, and allow easy interop to dynamic languages. In the tools space, Visual Studio 2010 offers greater support for Test-Driven Development, where tests are written before product code as an iterative approach to software design. In this interactive session you will get a chance to connect with the two Program Managers DJ Park and Dustin Campbell as they walk through the feature areas they feel will have the greatest impact to you and your development teams.

[Code]...

View 1 Replies

Update A Single Row And A Single Cell In Ms Access Database?

Dec 3, 2010

I am trying to update a row or a single cell in ms access through vb.net. But when i update the text box named NRIC, say for example i want to update "s4522147B" to "tr4521856C" and mean while leaving the other fields the same.

But the thing is when i make the changes in nric.text (textbox), the dataset actually updates the whole column in the table instead of the selected textbox.

Below is my code for the update part

[Code].....

View 3 Replies

Mutiple SQLDb TO SQLDb Data Transfer With A Generic Core Code

Jul 1, 2010

What is that ... Well I was not too sure how to title this question, and even after telling the client it was difficult if not impossible, he insists it's what he wants.. so here goes the question.. The client has several SQL systems running on site that collect data from different processes (Between 1 and 10 minute intervals depending on the process been checked). Note: these systems sit on different parts of the site..

[Code]...

View 1 Replies







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