Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8995931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:41:07+00:00 2026-06-15T23:41:07+00:00

I have a long running task that benefits from multithreading. A L2S entity is

  • 0

I have a long running task that benefits from multithreading.

A L2S entity is added to over time by each thread with each thread needing access to properties in that entity.

Because of this requirement of a single instance of the entity, it’s hard to use multiple datacontexts for each thread.
Is there a reccomended way to accomplish such a situation?

Before using Linq to SQL, I was serializing to XML after a set number of paralell iterations. This worked fine, but the data has since become more complicated requiring the relationships/querying available in SQL;

Some Additional Info:
The task is analyzing frames of video to find sequences of similar frames.
There are tables for Media, Frame and Shot.
A Media having multiple Frames and Shots
A Shot having multiple Frames;
Frame extraction and comparison are processor intensive operations and benefit from multithreading.

The issue is, that for each extracted frame. It needs to compare it’s self to the frames before and after it. The before/after frames are likely to come from a seperate thread.
As such, inserting Frames and Shots back into the single Media object being processed would mean combining entities from multiple data contexts into 1.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:41:08+00:00Added an answer on June 15, 2026 at 11:41 pm

    Instead of solving the parallel Linq issue I changed the process.

    Instead of trying to concurrently access the same list of items from multiple threads. I’ve split the list of items and assigned a thread to each section.

    This way each thread can act on their own list without bumping into each other.
    I’ve then written a finishing method to tidy up the joins between the lists.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a long-running asynchronous task that is kicked off from an ASP.NET MVC4
I have an Activity with a button that starts a long running task. I
i have long running task that gets called using jquery ajax. i am using
I have a long running, compute and disk intensive task that needs to run
I have a long-running Task that I've implemented using the Task Parallel Library. When
We have a button click event that starts a long running task that updates
I have a long running task that I want completed, even if the application
I have a long running task and a Dialog which informs the User that
I have a need to start a new thread for a long running task
I have a long-running process in a task queue that is causing a DeadlineExceededError

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.