Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

thread

Basic of Threading
Wednesday, 21 December 2011 01:07
C# supports parallel execution of code through multithreading. A thread is an independent execution path, able to run simultaneously with other threads.

A C# client program (Console, WPF, or Windows Forms) starts in a single thread created automatically by the CLR and operating system (the “main” thread), and is made multithreaded by creating additional threads. Here’s a simple example and its output:

All examples assume the following namespaces are imported:

using System;
using System.Threading;



class ThreadTest
{
static void Main()
{
Thread t = new Thread (WriteY); // Kick off a new thread
t.Start(); // running WriteY()

// Simultaneously, do something on the main thread.
for (int i = 0; i < 1000; i++) Console.Write ("x");
}

static void WriteY()
{
for (int i = 0; i < 1000; i++) Console.Write ("y");
}
}

//OUTPUT
xxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyy
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
yyyyyyyyyyyyyxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/oXoENJo4AOM/14257

 
simple example thread in pys60
Thursday, 17 November 2011 01:12

import appuifw
import e32
import thread
def mine():
global running
print "new thread started"
while running:
print "thread running"
e32.ao_sleep(2)
print "thread stopped"
def startth():
global running
running=1
thread.start_new_thread(mine,())
def stopth():
global running
running=0
def cl():
appuifw.app.body.set(u"")
def about():
appuifw.note(u"programmed by shankar.")
def quith():
stopth()
print "bye"
lock.signal()
cl()
appuifw.app.title=u"thread_demo"
appuifw.app.exit_key_handler=quith
appuifw.app.menu=[(u"clear screen",cl),(u"Menu1",((u"About",about),(u"Quit",quith))),(u"thread",((u"start new",startth),(u"stop all",stopth)))]
lock=e32.Ao_lock()
lock.wait()

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/bQtzwAtKr6w/13885

 
StitchBuddy 2.0.2
Monday, 08 November 2010 03:00
About StitchBuddy
Modify and convert embroidery files (JEF, SEW, PES, EXP, DST, VP3, PCS, PCQ, PCD). Parts of a design can be flipped or rotated, moved or deleted. Multiple designs can be combined using Copy and Paste and thread colors can be changed.

Features:
- Change individual thread colors, or replace the entire thread palette.
- Select from several different manufacturer thread charts.
- Copy and paste, rotate, flip, move, resize or delete selected stitches or the entire design. Center the design or add basting stitches with a single click.
- Extensive display options include zooming, 3D stitch display, show or hide jump stitches, show or hide the first and last stitch, design center, or stitch structure
- Many more features.

Read more: http://www.apple.com/downloads/macosx/home_learning/stitchbuddy.html

 
StitchBuddy 2.0.1
Thursday, 27 May 2010 07:00
About StitchBuddy
Modify and convert embroidery files (JEF, SEW, PES, EXP, DST, VP3, PCS, PCQ, PCD). Parts of a design can be flipped or rotated, moved or deleted. Multiple designs can be combined using Copy and Paste and thread colors can be changed.

Features:
- Change individual thread colors, or replace the entire thread palette.
- Select from several different manufacturer thread charts.
- Copy and paste, rotate, flip, move, resize or delete selected stitches or the entire design. Center the design or add basting stitches with a single click.
- Extensive display options include zooming, 3D stitch display, show or hide jump stitches, show or hide the first and last stitch, design center, or stitch structure
- Many more features.

Read more: http://www.apple.com/downloads/macosx/home_learning/stitchbuddy.html

 


Taxonomy by Zaragoza Online