Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Threading

Threading

Scheduled Pinned Locked Moved C#
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    clint1982
    wrote on last edited by
    #1

    Hello I was wondering : when I use System.Threading and use files, do I have a process switch or will another thread in the program get the remaining time share. Clint

    G C 2 Replies Last reply
    0
    • C clint1982

      Hello I was wondering : when I use System.Threading and use files, do I have a process switch or will another thread in the program get the remaining time share. Clint

      G Offline
      G Offline
      geo_m
      wrote on last edited by
      #2

      I'm not sure if I fully understood the question, but if you're using threads from System.Threading the time the threads are running are automatically scheduled and switched by the windows for you.

      1 Reply Last reply
      0
      • C clint1982

        Hello I was wondering : when I use System.Threading and use files, do I have a process switch or will another thread in the program get the remaining time share. Clint

        C Offline
        C Offline
        Christopher Duncan
        wrote on last edited by
        #3

        Also, if you're going to be writing a multi threaded app, be sure to make your data thread safe using syncronization objects, or one thread could overwrite your data while you're working with it in another thread.

        Author of The Career Programmer and Unite the Tribes www.PracticalStrategyConsulting.com

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups