본문 바로가기

카테고리 없음

[c# , Thread] lock Test





@MainThread Render
         void renderTimer_Tick(object sender, EventArgs e)
        {
            button1.Location = pos;
            pos.X = (int)(Math.Sin(Math.PI / 180 * i) * 100) + 100;
            lock (bitmap)
            {
                panel1.DrawToBitmap(bitmap, panel1.ClientRectangle);
            }
            ++i;
        }


@Child Thread Render


        void timer_Tick(object sender, EventArgs e)
        {
            lock (Form1.GetData)
            {
                //pb is PictureBox
               //.GetData => Bitmap
                pb.Image = (Bitmap)Form1.GetData.Clone();
            }
        }




※ 그런데 .. lock 을 쓰지 않고 병렬처리 하는 법이 있다고 함 = = ??


  • 이전 댓글 더보기
  • BlogIcon Φτηνές Nike Jordans 2014.10.29 15:07

    이용약관위배로 관리자 삭제된 댓글입니다.

  • BlogIcon Buy macbook air from china 2014.11.01 21:28

    이용약관위배로 관리자 삭제된 댓글입니다.

  • BlogIcon meizitang 2014.11.01 23:27

    이용약관위배로 관리자 삭제된 댓글입니다.

  • 이용약관위배로 관리자 삭제된 댓글입니다.

  • 匿名 2014.11.10 17:32

    이용약관위배로 관리자 삭제된 댓글입니다.

  • BlogIcon 深圳横岗眼镜批发 2014.11.12 00:50

    이용약관위배로 관리자 삭제된 댓글입니다.

  • BlogIcon 深圳横岗眼镜批发 2014.11.12 00:52

    이용약관위배로 관리자 삭제된 댓글입니다.

  • BlogIcon ipo moncler borsa italiana 2014.11.12 11:44

    이용약관위배로 관리자 삭제된 댓글입니다.

  • 이용약관위배로 관리자 삭제된 댓글입니다.

  • 이용약관위배로 관리자 삭제된 댓글입니다.

  • 匿名 2014.12.03 05:44

    이용약관위배로 관리자 삭제된 댓글입니다.

  • 匿名 2015.02.06 14:13

    표마永恒之塔服务端传奇服务端密传-服务端QQ西游私服务端天堂1私服务端

    千年服务端蜀门服务端征途服务端机战服务端神泣服务端醉西游服务端

    天堂I服务端挑战OL服务端剑侠情缘-服务端奇侠XIAH服务端挑战服务端


    传世开私服一条龙服务-

    传奇开私服一条龙开区服务-


    传奇广告代理-

    IDC服务器以及空间租用-

    魔兽世界sf开服一条龙服务-


    客服咨询QQ(企鹅扣扣)1285574370

    Email:1285574370@qq.com

    更多商业版本免费开放下载




    天恒科技1.95皓月终极12星座道士加强升级版



    天恒科技1.85荣耀必杀极限之地广寒宫泡点元素PK版



    天恒科技1.85无特戒无英雄轻中变魔神唯我独尊麻痹宝宝



    天恒科技独家1.85恶魔世界装备分身15转八钻靓装元素中变版니고

  • BlogIcon tiffany co sunglasses 2015.03.05 17:04

    리가there are lots of substances to cure yeast infection but how do you cure yeast infection in women naturally? in this topic Use an Apple for keeping the Doctor Away Toenail Fungus: save youAnd Cure it Cheaply Venison with Cranberry Sauce the way to seek out Sinus Pressure Relief Naturally Control you Ant Problem
    this is a largely recognized종마

  • BlogIcon achat chemises burberry 2015.03.21 07:22

    메표URL aIci,bikini burberry pas cher相关的主题文章:는기

  • BlogIcon chemise burberry femme 2015.03.27 21:10

    던예les commandants de compagnie, 16 n'ont pas vécu.laisse - | > | les gens parce que la peste provoquée par un traitement inadéquat| | dans l'ère Song Lizong, Bataille de Leningrad après obtention de la bouée de sauvetage, Wu élevé, son père était les marbres d'Elgin célèbre provenant de la Grèce.La prés알조

  • 匿名 2015.04.01 06:28

    메의火车采集器html简单模板示范






    The Insurgency in Southern Thailand







    [标签:来源]








    Thai premier Surayud Chulanont has reacted to escalating violence in Thailand's southernmost regions by traveling to the area and making his latest move towards ending decades of violence.

    The insurgency in southern Thailand has received major media attention in the wake of a series of viole지일

  • 匿名 2015.04.03 13:49

    관지They are comfortable and keep your feet feel different! This year is tailored to the retro era, large and small, a wide range of classical styles are back to the attention of the population between the return series of the wind.



    Nike Air Max sneaker has a classic b-ball for a look around oreder the two basketball courts and also the pedestrian to complete. Nike Air Max 95, a draft model Spo련상

  • 匿名 2015.04.03 17:37

    들조For those who wish to improve their business, they have the option to make more money by switching to a shopping cart software. The difference is that a shopping cart will have more features than a blog shop. It definitely has more payment processors for you to choose from and your customers can pay by credit card for their purchases. Most people who normally shop online will tell you that one of 종상

  • 匿名 2015.04.04 02:54

    는로Lacoste boots and a beret big mesh, or even the entire pleated skirt,Valentine Online Shopping for, tights and wool biker boots. The more adventurous may try to marry a trio monochrome black carrot trousers.



    Badia will be a mini-skirt skater, opaque tights and Minnetonka for a look kindly teenager,Cost Saving Tips While Shopping_56757., as she wants deliciously shifted pair of trousers, swe어이

  • 匿名 2015.04.09 00:24

    지그Like the above, knitted hat and a jacket with a lining seam searsucker-like. We're not normally a heavy logo'd pieces,Staying Organized While Groce, but the embroidered letters feels like a part of the winter-generic design.



    Few have left thoughts about the current collection. Moncler is not for everyone because not everyone can come from the look of nyloned painted in a bright color, but t선그