Closed

parallel computing

This project received 2 bids from talented freelancers with an average bid price of $6 USD / hour.

Get free quotes for a project like this
Employer working
Project Budget
$2 - $8 USD / hour
Total Bids
2
Project Description

static void Main(string[] args)

{

//creating the cancelation token

CancellationTokenSource cancellationTokenSource = new CancellationTokenSource();

CancellationToken token = [url removed, login to view];

//creating the task

Task task = new Task(() =>

{

for (int i = 0; i < 100000; i++)

{

if ([url removed, login to view])

{

[url removed, login to view]("Cancel() called.");

return;

}

[url removed, login to view]("Loop value {0}", i);

}

}, token);

[url removed, login to view]("Press any key to start task");

[url removed, login to view]("Press any key again to cancel the running task");

[url removed, login to view]();

//starting the task

[url removed, login to view]();

//reading a console key

[url removed, login to view]();

//canceling the task

[url removed, login to view]("Canceling task");

[url removed, login to view]();

[url removed, login to view]("Main method complete. Press any key to finish.");

[url removed, login to view]();

}

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online