Run The Same Task 5000 Times Simultaneously

Sep 28, 2011

I have an app that I query a database for IP information, then Ping the IP's and log the results to a database. This takes a long time (testing with 200 takes about 5 minutes as they are all sites across public internet) due to waiting for response from 1 ping before sending the next ping for the next site.

[Code]...

View 5 Replies


ADVERTISEMENT

C# - Run The Same Task Simultaneously?

Apr 20, 2009

I have a MDI WinForms application that can perform several tasks. Each task is running as a backgroundWorker.What is the good approach to control the running threads:check whether the specific thread is running stop specific thread ?For example it shouldn't be possible to run the same task simultaneously.May be I need a separate class where I can store isTaskRunning variable?

View 1 Replies

.NET Shared Function If Called Multiple Times Simultaneously?

Mar 25, 2010

Consider I have a shared function:Public Shared Function CalculateAreaFromRadius(ByVal radius As Double) As Double

[Code]...

If I have two or more threads in the same vb .net app and each of them calls the shared function at the same time with different RADIUS, will they each get their own AREA? I want to know for each call to the function if it is using same local variables or each call creates new instances of local variables?Will the answers to above questions be same If I have multiple (2+) single threaded apps and they all call the function at the same time with different RADIUS value?

View 2 Replies

Performing Task Between Two Date/times?

Oct 16, 2009

i'm trying to set a discount to a product between two dates / times.Is it possible to achieve it?Are there any examples

View 3 Replies

Is It Guaranteed That Task A Started Before TaskB Will Be Completed Before Task B

Nov 24, 2010

is it guaranted that a task A started before TaskB will be completed before task B assuming the task do the same level of operatons?or in other words is there a chance that a task B will finish before tast A in the assumption that the task calls the same procedure?

View 4 Replies

Enlarge An Image Up To 32 Times Or 64 Times Bigger Than Original?

Dec 12, 2011

I want to enlarge an image, possibly up to 32 times or 64 times bigger than original dimensions (so that the user can see each pixel) if possible. The following is a simple function that I have to enlarge an image.

Private Function xEnlarge(ByVal Source As Image, ByVal Rate As Double, Optional ByVal Quality As Drawing2D.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic) As Image

[Code].....

View 6 Replies

VS 2010 - Using System.Threading.Thread.Sleep(5000) To Let My App Pause/sleep For Some Time

May 25, 2010

Currently I'm using System.Threading.Thread.Sleep(5000) to let my app pause/sleep for some time. This works great but I can't open my app anymore when it's sleeping and it uses about 25% of my CPU. I guess there must be a better way to do this. I also tried using a timer but that didn't work out to well for me..

View 5 Replies

Record Data From RS 5000 To PC - Manipulate Data Using VB?

Sep 16, 2011

I've got a tough one today and need a lot of with it. I hope someone out there has some experience in a manufacturing environment or at least point me to somewhere that will have an answer. So, the company I work for has RS 5000 (also have RS Linx) by Rockwell Automation. I need to record process test values to a file on a server and then use VB to manipulate that data. First off, I am trying to figure out how to get the data off of the PLC Can I export data to a file or do I have to retrieve data from a processor?

View 10 Replies

Forms :: Find If Times Is Between 2 Times?

May 13, 2009

I have just started using vb.net and I have a checked list box with times throughout the day shown as

00:00 - 00:14
00:15 - 00:29
00:30 - 00:44
00:45 - 00:59

What I am trying to find is a way to get the current time and find which list item it fits into. What I think I need to do is to first of all get the current time and then go through the list splitting each item into 2 times and seeing if the current time fits. For example: Split the item 00:00 - 00:14 to 00:00 and 00:14 and then check if the current time is more than 00:00:00 but less than 00:14:59 and if so do certain task.how to go about taking each list item and splitting it into 2 separate times so I can check between them?

View 2 Replies

VS 2008 - Timer Set To 5000 (5 Seconds) And The Code In The Timer Takes Longer Than 5 Seconds?

Jun 14, 2012

Quick question - if I have a timer set to 5000 (5 seconds) and the code in the timer takes longer than 5 seconds to run because of sql stuff, will the timer wait until the code is done till it fires again?

View 3 Replies

Asp.net - Logging In Simultaneously In Two Websites?

Aug 17, 2011

I have two websites "WEBSITE 1" and "WEBSITE 2"...now i want that when someone logs in to "WEBSITE 1" he does not have to log in to "WEBSITE 2" and vice versa...ie when he/she logs in to any one of he websites and opens the other one simultaneously he/she does not have to login to the other one.For eg :- when you are logged in in gmail...you do not have to log in in youtube or orkut or google+

View 1 Replies

How Many Buttons Are Pressed Simultaneously

Sep 16, 2009

[code] 'The description for the state.getbuttons() is:'Public Function GetButtons() as Byte (is a array of buttons).'The high-order bit of the Byte is set if the corresponding button is down, 'and clear if the button is up or does not exist.This code is used to show if certain buttons of a GamePad/joystick are pressed using the DirectInput method (DirectX SDK).This code shows how many buttons are pressed simultaneously. So 00 for zero and 00 01 if two buttons are pressed. I would like to know what button exactly is pressed (some kind of unique code for each button). But I can't get it done.

1. Is there a way so show all the bits inside the state.getbuttons()? (maybe there is a unique combination for each button).

2. What does &H80 mean?

View 8 Replies

How To Loop Through Two Lists Simultaneously

Apr 12, 2011

I have referred to the following question at: Using foreach loop to iterate through two lists. My question is this, with regards to the chosen answer: Can the o.DoSomething be a comparison? As in:

For Each a in ListA.Concat(ListB)
If(a from ListA=a from ListB) Then
Do Something here
End If
Next

I'm using VB.Net and would like to know how I can do what I have shown here. That would basically be to iterate through a joined list separately/independently.

View 4 Replies

Login And Popup Simultaneously?

Jan 18, 2010

ok im reposting this question cause i got some off track answers last time.I have 3 aspx pages - page1, login and page3. Now when i goto login page from page1, after i login and goto page3 i should be able to open a popup on that submit and the login should change to page3. but if i goto login page directly, the popup should not open and the login will goto page3 as normal design. how can i achieve this?

View 1 Replies

Use VB6 And VB Express 2008 Simultaneously?

Feb 26, 2010

i'm from Turkey. i have a question. can i use vb6 and vb express 2008 simultaneously? my os is win 7 and runs intel q6600 core2 quad, 4 GB ram. i asked becasue i have no idea what will happen when i do this.

View 1 Replies

Way To Load Form Simultaneously

Mar 11, 2010

I have two form the parent form with the menu list and the child form. I want to show the two form simultaneously or the main menu first and then the child form.

View 13 Replies

.net - Two Timers Running Simultaneously And Independently?

Oct 27, 2011

I want to expand it a little bit and add a second timer that runs parallel to the first timer, but is not affected in any way shape or form by the first timer.

Ive tried nesting the second loop in the first loop but the second loop takes 3 seconds to complete (I use thread.sleep(3000)), so I found that it froze the first loop till the second loop finishes. I was reading about system threading (System.Timers.Timer) and it seems like that is the route I want to go.

I wrote this quick as an example:

[Code]...

I cant use the timer1 to set off the second round of events because of the thread.sleep. I was hoping that the code above puts the second thread to sleep while the windows.form.timer continues on ticking every 1000 ms

View 3 Replies

Can't Simultaneously Instantiate Multiple Forms?

May 5, 2010

I used different backgroundworkers to instantiate some 'heavy' forms thinking that it will reduce the time to instantiate them if I did them at once but it looks like I am wrong since it is still taking about 43 seconds to load all of them. Am I missing something or do you have a tip on how I can speed up their instantiation?

View 15 Replies

Extracting And Updating SQL Database Simultaneously?

Nov 22, 2011

I wrote a function that returns the number in a particular field, my issue at the moment is how to update that field before i return the previous value i collected from the field. i am seeking any guidance available. Enclosed is the function i wrote.

Function GetTransactionNumber() As Int64
Try
GConn.ConnectionString = GConnstr

[Code].....

View 3 Replies

LINQ Query 2 Arrays Simultaneously?

May 12, 2011

how can i query 2 arrays simultaneously?for example:

dim string1() as string = {"a","b","c"}
dim string2() as string = {"d","e","f"}
dim string3() as string = ? 'linq query that selects all elements in string1 + all elements in string2

View 7 Replies

Move Multiple Sprites Simultaneously?

Jun 18, 2011

Not wanting to hijack 45minutes thread, I thought I might spawn a thread of my own based on his question.

PlausiblyDamp was kind enough to provide some generic code, which I have modified and attached.

I have made a few alterations mostly around removing random objects, as the game in question (Space Invaders) has a set amount of aliens and set starting positions.

As a start I have limited the UpdatedPostion to horizontal movement as the aliens only go side to side unless they hit an edge.[code]...

View 15 Replies

Multiple Shell And Wait Simultaneously?

Feb 18, 2010

I am creating a GUI that monitors the entered application and if the application crashes the GUI starts the application back up. Problem is to run this application (WoW Private Server) I need 3 running applications. Is there a way to shell and wait 3 applications all at once. OR if i was to create a separate console application who's only job was to start the three applications at once how would I pass the application variable?
Here is my program thus far: [URL]

View 8 Replies

Using Two Rows Simultaneously In Datagrid View

Feb 12, 2012

I have a datagrid structure made below.

[Code]...

how can i use two rows at same time to calculate the date diff ? so that date diff is calculated automatically and inserted in the cell.

View 2 Replies

'Listen' To Microphone Input And Playback Simultaneously?

Mar 23, 2012

I'm developing a Public Announcement appplication with two main features:

1. Record audio and playback on event (I've achieved this)

2. Allow 'realtime' playback on event - no recording, just a live announcement

So, how can I cause the microphone input to be sent to the speakers simulatiously as the announcer speaks?

mciSendString("open new Type waveaudio Alias recsound", "", 0, 0)
mciSendString("play recsound", "", 0, 0)

View 2 Replies

Add Two Pictures In A Single Picturebox And Display Them Simultaneously?

Mar 24, 2011

i want to add a picture of a field like a football field and on it a ball would roll (just like the football). i have loaded the field's picture in the picturebox , but m nt able to load the second picture i.e of the ball. how can i do this?

View 1 Replies

C# - Disable Multiple Network Connections, Only Allow One Simultaneously?

Feb 17, 2011

We are looking to design a security application that does the following on laptops:If the ethernet adapter is used (cable plugged in) disable/block all other network connections (wireless WIFI, mobile broadband (PPP), virtual VPN adapters etc)When ethernet adapter is not being used again, all connections allowed.We have looked in the WMI a lot but there are no good ways of doing this. Only disabling the network connection is not secure enough because most mobile broadband applications try to re-establish the connection. This should be an application that works on all laptop vendors without any user interaction (such as choosing interfaces etc..).

View 3 Replies

Change Multiple Items Simultaneously In DataGridView?

Feb 7, 2012

I'd like to allow the user to select up to an entire column of cells and type and/or paste a single value that would then change the value of all the selected cells in the DataGridView to the value that was typed or pasted. I understand this is probably two separate answers, but perhaps if there is a way to set the contents of the clipboard with the value typed, I was thinking it may work well to identify both things I want to do.

View 3 Replies

Play Multiple Files Simultaneously At The Moment?

Dec 14, 2009

I need to play multiple files simultaneously at the moment i am trying to use mciSendString() API it plays the files listed in a listbox. But it is only playing the first one i assume it would play the next one after the first is finished... cbf waiting to see.

Note this was an attempt in C#:

private void PlayButton_Click(object sender, EventArgs e)
{
if (SongsListBox.Items.Count > 0)
{

[Code]....

View 3 Replies

Play Multiple Sound Clips Simultaneously?

Feb 6, 2010

I have been using the My.Computer.Audio.Play method for sounds in my program for a very long time, but now I have reached a point where the program needs to be able to play more than one sound at a time. What is the best (and preferably simplest) way to do this?

View 8 Replies

Play Multiple Sounds Simultaneously From Resources?

Dec 13, 2010

I want to play multiple sounds simultaneously from My.Resources in Visual Basic 2010. I have tried:My.Computer.Audio.Play(My.Resources.SoundName, AudioPlayMode.Background)

I have also tried using multiple Windows Media Player controls, but that also didn't work.The first sound is cut off when the next sound plays.When searching around the internet I found people suggesting using 'DirectSound', but there are only tutorials for DirectSound in VB 6.0.

View 1 Replies







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