tasks

Task vs. process, is there really any difference?

Hi there, I'm studying for my final exams in my CS major on the subject distributed systems and operating systems. I'm in the need for a good definition for the terms task, process and threads. So far I'm confident that a process is the representation of running (or suspended, but initiated) program with its own memory, program counter...

Any task-control algorithms programming practices?

Hi, I was just wondering if there's any field which concerns the task-control programming (or at least that's the way I call it). For a better explanation of task-control consider the following scenario: An application (master-thread) waits for a command - which might be a particular action or a set of actions the application should p...

JAVA - Cancel the ThreadPoolExecutor running tasks

What I need is a method similar to shutdownNow, but, be able to submit new tasks after that. My ThreadPoolExecutor will be accepting a random number of tasks during my program execution. ...

what is programmer job or task?

Hi, what is programmer job or tasks? is it only programming, or it includes software testing,windows installer, network management, helpdesk, documentation??? AS I am a graduate developer, I feel like I am doing everything, from upgrading hardware, installing antivirus, ...everything.... and of course coding... thanks ...

System.Threading.Tasks - Limit the number of concurrent Tasks

I have just started to look at the new "System.Threading.Tasks" goodness in .Net 4.0, and would like to know if there is any build in support for limiting the number of concurrent tasks that run at once, or if this should be manually handled. E.G: If I need to call a calculation method 100 times, is there a way to set up 100 Tasks, but ...

Foreach loop and tasks.

I know from the codeing guidlines that I have read you should not do for (int i = 0; i < 5; i++) { Task.Factory.StartNew(() => Console.WriteLine(i)); } Console.ReadLine(); as it will write 5 5's, I understand that and I think i understand why it is happening. I know the solution is just to do for (int i = 0; i < 5; i++) { ...

Development schedule for web applications?

Hi everybody, I am looking for some kind of solution to take care of development scheduling for web applications. How does the big guys in the industry handle this? Is it all about SVN and bug trackers for them? ...

Should I use .NET 4.0 Tasks in a library?

I'm writing a .NET 4.0 library that should be efficient and simple to use. The library is used by referencing it and using its different classes. Should I use .NET 4.0 Tasks tot make things more efficient internally? I fear that it might make the usage of the library more complex and limited since the users might want to decide for the...

Are System.Threading.Tasks capable of running as background threads?

One feature of Threads is that you can set the .IsBackground property to true, and it will not prevent the process from terminating (ie, the framework calls Thread.Abort() on all running background threads at termination) I can't seem to find a similar feature in Tasks. I used background threads a lot when I create services, where if t...

Eclipse tasks from specific files

In Eclipse (Galileo) is it possible to filter the list of TODO and FIXME tasks by a specific specific file, or several files? Instead of having the whole list for the entire project. ...

App Engine Task Not Being Retried On Error

On my local dev environment, when an App Engine task that had been added to the the task queue hits an error, it is retried until successful. However, in the production environment, it's not. What I THINK is happening is that, because I have a custom 500 handler in urls.py, all errors are caught by this and the 500 error never bubbles to...

Automatic task execution on google app engine development server (python)

The docs for the python dev server say this about running tasks: When your app is running in the development server, task queues are not processed automatically. Instead, task queues accrue tasks which you can examine and execute from the developer console... But the release notes for version 1.3.4 of the python sdk (whic...

Symfony Tasks: Getting the output of a module / action

Hi, Is it possible to capture the output of an action in a task? Ex: FooAction { executeIndexSuccess() } and in my Task: FooAction->Index Is this possible? Thanks ...

How to pass task attachments down a workflow chain of tasks in sharepoint designer?

I am developing a workflow which involves a chain of tasks. This chain is started atomatically on the creation of a specific list item. The workflow creates a new "readonly" list item in another list to hold all the information and creates a new task item to collect more info. This new task then updates the "readonly" list item with its ...

Best strategy to implement this behavior in Android app?

In my Android app, I have some data that needs to be synced daily but also needs to be updated every hour when a user is inside the app. I have already implemented a service that gets called from an alarm for the daily update. Im having a problem with developing a strategy to do the hourly sync. I could use an hourly alarm too and fire ...

Need comprehensive C# System.Threading.Tasks example

Hi! I've been trying to figure out how to use System.Threading.Tasks to asynchronously invoke a synchronous WCF method while supporting cancellation, error handling, result-return and multiple continuations. I've come across a number of incomplete demos but they all seem to fall a bit short. As an example I can't use cooperative cancel...

How to run multiple tasks in Ruby?

I have a Capistrano deploy.rb script which has multiple tasks that can be invoked on the command line cap site1_to_live deploy cap site2_to_live deploy (...etc) I have tried combining these into a single task as follows task :all_to_live do site1_to_live site2_to_live site3_to_live end However, only one of the tasks is execut...

Different summation results with Parallel.ForEach

I have a foreach loop that I am parallelizing and I noticed something odd. The code looks like double sum = 0.0; Parallel.ForEach(myCollection, arg => { sum += ComplicatedFunction(arg); }); // Use sum variable below When I use a regular foreach loop I get different results. There may be something deeper down inside the Compli...

synchronize tfs or project work items with outlook tasks

Is it possible to synchronize tfs (2008 or 2010) or project 2010 work items with outlook tasks (without the project server)? Is it possible to send a work item from tfs or project 2010 as an outlook task? ...

Including CSS in an email sent from a task in symfony

I am attempting to send an HTML email from a symfony (1.4.6) task, I don't want to send the entire rendered HTML output from a particular module/action, so I am rendering a partial. That's all fine, the issue is that the partial contains CSS references. Is there a nice 'symfonic' way of including a CSS file in an HTML email from a symfo...