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 8964567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:37:08+00:00 2026-06-15T16:37:08+00:00

I made some tests in GDI+ with drawing lines/arcs, on a graphics class created

  • 0

I made some tests in GDI+ with drawing lines/arcs, on a graphics
class created .FromImage method.

For performance reasons, I divide this in a multithreading setup
(tests with several methods: New Thread(AddressOf.. or Parallel.For… or New Task..)
I have noticed that this gives no performance increase.
However if I am replacing the .Graphics.DrawPath routine by a test routine (for example: calculations) then there is a real improvement in performance when using multithreading
(see figures)
What is the reason for this and how to solve?

I have created four setups:

  1. drawing on graphics:
    4x (40000 elements on a seperate graphics.fromimage) on 4 threads (or task )
    (time: 1s 76msec)

  2. drawing on graphics:
    4x (40000 elements on a seperate graphics.fromimage) serial
    (time: 959msec)

  3. calculation:
    4x (floating point test calculation) on 4 threads (or task )
    (time: 672msec)

  4. calculation:
    4x (floating point test calculation) serial
    (time: 2s 189msec

  • 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-15T16:37:10+00:00Added an answer on June 15, 2026 at 4:37 pm

    Any large library that’s thread-safe uses locks to protect shared state. These locks often cause contention between threads, a thread will get bogged down waiting for another thread to release the lock.

    This is Ahmdal’s Law at work.

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

Sidebar

Related Questions

I've made some unit tests (in test class). The tutorial I've read said that
I have a class that I made for some unit tests. Everything was going
I made some tests of speed to compare MongoDB and CouchDB. Only inserts were
Today I made some tests and I am curious of the results. I made
I made some tests with the load() command of jQuery, something like: $('<div id=box
I'm newbie in base64. I made some tests. I saw some stranges When I
I have winform with a TextBox and I want to draw some GDI graphics
I made some tests with MongoDB 2.1 (unstable debian package). I want to test
I have a 80 kB javascript file, and I made some tests and concluded
I've made some speed tests concerning Lists in C#. Here is a result that

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.