A task is a concurrent thread of execution in an Ada program. Tasks correspond to Threads in Java.

learn more… | top users | synonyms (1)

1
vote
1answer
26 views

Stop application while doing some operations

I created an application that search a word in each file contained in a directory. I wanted to implement a way to stop searching. I created a method that calls other diffent methods according to each ...
0
votes
0answers
12 views

How do I keep a skydrive api call going when ios app goes to background

I am trying to use the skydrive API from iOS and it works fine. What i don't understand is how to have it keep working when the application goes into background. Putting a call to liveclient.upload ...
0
votes
0answers
8 views

Create script for creating Task schedule task from existing task

Is there any way to create script for creating existing Task schedule task? If I have some task in Task schedule I can export it and import it on another server but can I create script for creating ...
1
vote
1answer
27 views

Node.js background tasks

I have an application where there is a portion that is computationally intensive. I would like to move that computation off to a background task and have it notify the main Node.js thread when it is ...
1
vote
1answer
31 views

Optimal Implementation and Usage of Task Parallel Library?

I have a WCF Service that is responseible for taking in an offer and 'reaching' out and dynamically provide this offer to X amount of potential buyers (typically 15-20) which are essentially external ...
0
votes
1answer
18 views

Task scheduling and WaitHandles

I am trying to have multiple tasks consuming objects from a concurrent collection but only when a specific resource is available. For the reason of signaling the availability of this resource, I ...
0
votes
0answers
10 views

Task inside Task with maximum running tasks

I need to create a small windows service that check DB every 5 min for tasks and process the information. I'm using System.Timers.Timer for my timer event. I have 2 tables: First Table - my tasks ...
-1
votes
1answer
18 views

Organizing task results using print statements

I am sending urls the are in a list using the task, BeginGetResponse, EndGetResponse and fromasync, and continuewith methods. Using Console.WriteLine is there a way to organize/schedule each urls ...
0
votes
0answers
4 views

Oraganized way of receiving results from asynchronous method using tasks

I am sending url requests using tasks asynchronously. Each url is in a list and I go through the list with a for loop. I am using simple Console.WriteLine methods to print the results that I get from ...
0
votes
1answer
10 views

Difference between Task.Result and Request response

I am sending Httprequests using tasks and capturing their response. In my code I wanted to know what is the true difference between (HttpWebResponse)t.Result and HttpWebResponse response = ...
1
vote
1answer
16 views

Call events delayed with all its arguments

I want to collect a bunch of events in a defined timeframe. I thought about using Ext.util.DelayedTask like var task = new Ext.util.DelayedTask(function(a,b) { console.log(a,b) }, this), handler ...
0
votes
2answers
39 views

calling async task from activity via button … progressdialog apears after activity has switched to another activity

i´m sitting fot hours now to get a progressdialog running.... i took a look at so many examples here on stackoverflow and on other sites. The Problem: I´m putting an progress dialog to an activity ...
1
vote
1answer
27 views

Continuation with Tasks (instead of delegates)

I have a class where each method execute asynchronously, i.e. return a Task, but where each method should nevertheless wait for the completion of the preceding call. Continuation, right? Except that ...
0
votes
1answer
10 views

How run Ant task remotely over VPN host

I need run some Ant tasks on remotely host over remotely host with VPN. Can I use sshexec or not. For example: On Teamcity server I run sshexec task to gateway host with VPN and I need run tasks on ...
0
votes
0answers
42 views

Scheduling random subset of agents to run task in NetLogo

I have been developing a procedure for 'human' agents to move south into a forest from hours 0600 to 1200 and then leaving the forest from 1200 to 1800. Currently all of the human agents start ...
0
votes
0answers
24 views

Hadoop custom RecordReader

i am new to Haadop. I have this input file: >Name1 #Pascal #Francisc #EPatanell >Name2 #OPistacchj #LFrancois I would that every map task read more then a line (precisly, i want that the ...
0
votes
1answer
61 views

Parallel computation. NET 4.0

I'm making my first steps in parallel programming. I rewrote CalculateSlots to CalculateSlotsAsync. It seams to work fine (3 times faster). My questions are: Is it written correctly? Do I need to use ...
0
votes
0answers
15 views

Is it possible to make a thread / task use http proxy for all connections inside

Alright let me try to explain what i am asking as much as possible When you start a task like below Task.Factory.StartNew(() => { myFunction(); }); I want all network ...
0
votes
3answers
45 views

A program that opens a text file, counts the number of words and reports the top N words ordered by the number of times they appear in the file?

Hi all im a beginner at programming, i was recently given the task of creating this program and i am finding it difficult. I have previously designed a program that calculates the number of words in a ...
0
votes
1answer
38 views

Java Scheduler? (Add tasks etc.)

Good Day, Is there any API for Java where I can "add" tasks like an OS? I have a ExecutorService that runs every 1 minute, and during this tick, I need it to send about 10 TCP messages to multiple ...
0
votes
1answer
13 views

Make custom task who returns boolean in Gradle

I want to ask how I can make a custom task in gradle for continious build, which do something and returns boolean class MyTask extends DefaultTask { @InputFile File first @InputFile ...
-1
votes
0answers
10 views

Java Google Tasks API via OAUTH2 ServiceAccount

How do I connect to my Google tasklist via Java Code? I've set up a ServiceAccount and enabled the API on my Account but every time I try to connect to my tasklist I get the response "Bad Request, ...
0
votes
0answers
24 views

sugarcrm custom save function when task is created from subpanel

When a task is created from Case page (Activities subpanel), it always call action_save function defined in root/modules/Tasks/Task.php file where as I want it to call action_save function defined in ...
-5
votes
1answer
46 views

Cannot call start on a completed task [closed]

I got this simple code. When click the button DoSomething(),DoSomethingElse() and DoEvenMore() run nicely and i wait for it to finish. void Button1Click(object sender, System.EventArgs e) { Task ...
2
votes
1answer
74 views

Index Out of Range Exception Using Tasks

I am using a Task.FromAsync and Task.ContinueWith method to complete my work. I am using a List in my program and when I run it, it gives me an Index Out of Range Exception. However, when I go through ...
1
vote
1answer
24 views

Linux Style Cronjob Command In Task Scheduler

Hay everyone just wondering if any of you can help me. I've just got this plugin that gets movie details from sites and imports the movies in my database. I've installed the plugin but it wants me to ...
0
votes
1answer
38 views

Best design pattern to handle Task Results ( await / async )

I have just installed Visual Studio 2012, So I can finally test C# 5.0 features like async/await. I was doing some testing and a doubt come to my mind. What is the best way to handle task Results. ...
0
votes
1answer
32 views

Gradle delete task failing with “unable to delete file”

I have the following delete task added to my build.gradle file: task cleanExtra(type: Delete) { delete '../version.properties' } clean.dependsOn(cleanExtra) Sometimes, when I call gradle ...
0
votes
0answers
33 views

Batch file for killing a process that is running under another logged in user

I am using a technique I came across here for a batch file to determine if a program is running and, if so, for it to be killed. I then want the program started again. We use a shared machine. My ...
0
votes
1answer
23 views

Link in view to controller task resets state variables

I have a task in my controller that I call from an URL in the view, like this: echo JRoute::_('index.php?option=com_mycomponent&task=myComponent.myFunction'); The task gets the model and ...
0
votes
0answers
13 views

Ignore Task result if it is not finished in timeout specified

I have list of tasks that I need to run parallel. There would be timeout setting for each task. If task takes more than specified time, I want to simply ignore that tasks's result. Here is the ...
2
votes
1answer
43 views

Returning objects from GetSomethingAsync callbacks

I am using the DropNet API for connecting to DropBox. I am struggling around async/await concepts though. I have a method is calling the api GetTokenAsync. The return type is void, and there is a ...
2
votes
3answers
48 views

The syntax of the command is incorrect when not run from cmd line

I have a batch file that runs fine if I run it from the command prompt, but throws an error if it's called from Task Scheduler or run through Explorer. It appears that the syntax error occurs with the ...
0
votes
1answer
32 views

update UI in Task using TaskScheduler.FromCurrentSynchronizationContext

I want to add some text to list box using Task and I simply use a button and place in click event this code: TaskScheduler uiScheduler = TaskScheduler.FromCurrentSynchronizationContext(); ...
1
vote
2answers
53 views

Does Task<T> actually lower the number of threads used?

I'm researching performance improvements for a WCF web service. This web service calls other web services that can take a long time to respond (5+ seconds). With high load on our service we can ...
1
vote
1answer
36 views

Using .FromAsync Task Status= WaitingForActivation

I am trying to send url requests and get responses back asynchronously, but when I use the .fromAsync method with the .ContinueWith method the task status never changes from WaitingForActivation to ...
2
votes
1answer
39 views

Sugarcrm task email template

When a task is created from case page (activities subpanel) an email is sent to the assignee. My requirement is to add custom fields to this email template in upgrade-safe manner. I have copied the ...
0
votes
1answer
94 views

c# 5 async as a sugar syntax (or not)?

So I was asking this question about async , and I thought that it it's just a sugar syntax for : Task<..>...ContinueWith... And finally inspect the Result property. I even asked a question ...
0
votes
0answers
37 views

Android Game Development. Async Task. Loading Bitmap Images Sounds.

Im working on this game for android. And wanted to know if my thread architecture was right or wrong. Basically, what is happening is, i am loading All the bitmaps,sounds etc in the ...
0
votes
1answer
21 views

Django setting up a scheduled task without Cron

I know there are many questions asking about this, especially this one: Django - Set Up A Scheduled Job?. But what I want to understand is, how does a scheduled task inside Django actually works? ...
0
votes
1answer
24 views

How to set split each task hadoop???

In my program Hadoop I set the type of input: FileInputFormat and set the file for example fileInput.txt( see the image). That file contains 10 lines. When i start the job , Hadoop generates two task ...
0
votes
1answer
45 views

Stop a Task without ThrowIfCancellationRequested

I have a task which i want to cancel. The normal method for doing this is with CancellationToken. this.task = new SpecialTask(() => { for (int i = 0; i < ushort.MaxValue; i++) { ...
0
votes
0answers
11 views

Unable to find assembly in Task

I have used Task in asp.net 4.0. In that I have handled Task timeout like below: var tokenSource = new CancellationTokenSource(); var token = tokenSource.Token; List<Task> lstTask = new ...
0
votes
0answers
33 views

creating custom buttons with visual Basic outlook's 2007

I use these buttons in Word without any difficulty or problem. Code of button1 (Paste Special): Sub paste() Selection.PasteSpecial DataType:=wdPasteText End Sub Code of button 2(date and time ...
0
votes
0answers
24 views

A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property

In Asp.net 4.0, mvc 4, i am using Task. My reference Code:: List<Task> lstTask = new List<Task>(); lstTask.Add(Task<CustomClass>.Factory.StartNew(() => Method1())); ...
0
votes
1answer
43 views

dynamic binding in ListBox using Task Class in c#,WPF

I'm developing related FaceBook Application using WPF,C#. and I developed to receive photo through Facebook API(graph.facebook/{album id}/photos). But I want to receive async and update ListBox in ...
0
votes
0answers
16 views

Stop Task after WaitAll Time elapsed

In Asp.net 4.0, mvc 4, i am using Task. Below is my reference code: List<Task> lstTask = new List<Task>(); lstTask.Add(Task.Factory.StartNew(() => Method1())); ...
0
votes
0answers
13 views

schtasks to create a reminder task

in Win 7, there is GUI to create scheduled task "taskschd.msc" (win 7) or task scheduler. One can create a task which can run a program , send a mail or Display a message through GUI. As per my ...
0
votes
1answer
49 views

Multithreading Task read a list, caused index out of range

There is a case that the application system needs publish messages to online users every 1 minutes, and the code is using multithead tasks to read a message list. But the program is not run correctly, ...
0
votes
3answers
61 views

creating a .net async wrapper to a sync request

I have the following situation (or a basic misunderstanding with the async await mechanism). Assume you have a set of 1-20 web request call that takes a long time: findItemsByProduct(). you want to ...

1 2 3 4 5 32
15 30 50 per page