Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support How do i start a new thread with my android phone? Post 303026945 by Neo on Wednesday 5th of December 2018 10:53:25 AM
Old 12-05-2018
Use your Thread-O-Matic Discombobulator?
 

3 More Discussions You Might Find Interesting

1. SCO

How do I start a thread ?

I am actually trying to find out the following: Using MS Windows, XP PRO, I downloaded an Adaptec SCSi 39160 driver from SCO Unix site. Driver is ad160.btld. I now need to copy this driver to a SCO Unix 5.5 standalone server, via a floppy diskette. I've tried SCO505 Diskimage and it didn't have... (2 Replies)
Discussion started by: mos8001
2 Replies

2. Android

Will You Move to an Android Phone or Tablet?

Let's find out about users of Android. I'm becoming a big Android follower. You? After a lot of research, I am thinking to by the Samsung Galaxy S as soon as it updates to Android 2.2. I'm also closely following the release of the Samsung Galaxy Tab! (14 Replies)
Discussion started by: Neo
14 Replies

3. Solaris

Solaris View/Transfer Files Android Phone

I'm trying to sync/transfer files from my UNIX box and Android Phone and vice versa. I know that Android Phones show up seamlessly (mostly) in Linux given their incestuous relationship. Is there a way to do it in UNIX or more specifically in Solaris 11.3 (i86)?:confused: I haven't found one... (2 Replies)
Discussion started by: Nostradamus1973
2 Replies
Thread::Queue(3pm)					 Perl Programmers Reference Guide					Thread::Queue(3pm)

NAME
Thread::Queue - thread-safe queues SYNOPSIS
use Thread::Queue; my $q = new Thread::Queue; $q->enqueue("foo", "bar"); my $foo = $q->dequeue; # The "bar" is still in the queue. my $foo = $q->dequeue_nb; # returns "bar", or undef if the queue was empty my $left = $q->pending; # returns the number of items still in the queue DESCRIPTION
A queue, as implemented by "Thread::Queue" is a thread-safe data structure much like a list. Any number of threads can safely add elements to the end of the list, or remove elements from the head of the list. (Queues don't permit adding or removing elements from the middle of the list). FUNCTIONS AND METHODS
new The "new" function creates a new empty queue. enqueue LIST The "enqueue" method adds a list of scalars on to the end of the queue. The queue will grow as needed to accommodate the list. dequeue The "dequeue" method removes a scalar from the head of the queue and returns it. If the queue is currently empty, "dequeue" will block the thread until another thread "enqueue"s a scalar. dequeue_nb The "dequeue_nb" method, like the "dequeue" method, removes a scalar from the head of the queue and returns it. Unlike "dequeue", though, "dequeue_nb" won't block if the queue is empty, instead returning "undef". pending The "pending" method returns the number of items still in the queue. SEE ALSO
threads, threads::shared perl v5.8.0 2002-06-01 Thread::Queue(3pm)
All times are GMT -4. The time now is 08:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy