LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old
Rating: 2 votes, 5.00 average.

Why and how to use `pthread_join()`? - PThreads

Posted 05-23-2012 at 01:00 AM by TheIndependentAquarius
Updated 08-24-2012 at 01:50 AM by TheIndependentAquarius

  • Q: What is join with respect to Pthreads?
    A: Join is a functionality of Pthread library which allows the originating thread to wait for the completion of all its spawned thread's tasks.

    Without join the originating thread would exit as soon as it completes its chores, completely ignoring the states of its spawned threads. Due to this, even if any of the spawned threads is in middle of its chore, it'll simply get aborted.
  • Problem statement:
    In the below code I have
...
Senior Member
Posted in PThreads
Views 6047 Comments 0 TheIndependentAquarius is offline
Old

sharing files with a qemu guest: the easier way

Posted 05-22-2012 at 03:32 PM by hydraMax (Bits and Pixels)

This will not be news to any true qemu guru. But for the rest of us: if you search online for information about how to share files with a qemu guest, you are likely to get pointed to some deep tutorial about setting up a TUN/TAP interface involving multiple configuration files and changes to your system permissions. A simpler approach is the -redir option:

Code:
qemu-kvm -hda debian.img -m 512 -redir tcp:5555:22
(The -m option refers to the amount of memory to allocate to...
Member
Posted in Uncategorized
Views 1061 Comments 0 hydraMax is offline
Old

aaargh - Windows

Posted 05-19-2012 at 09:32 AM by error_401
Updated 01-15-2014 at 01:27 AM by error_401

Have to get this off my head.

Today I've spent 4 1/2 hours on installing Windows and 35 minutes on Linux. Plus 4 hours in vain on a couple Zyxel USG 50 Routers setting up a VPN connection. Result = no worky!

As I had this nice ACER AspireONE netbook I wanted it to run my usual flavor of Linux the Debian 6 Squeeze. So today I had some time to spend over lunch. It was a bit of fumbling until I had a bootable USB stick. Three attempts and 2 hours the other day until I...
LQ Newbie
Posted in Uncategorized
Views 17830 Comments 7 error_401 is offline
Old

OOo/LibreOffice Calc BASIC: cell display orientation/rotation

Posted 05-18-2012 at 01:45 AM by catkin

There are incorrect examples on the internet of using OOo/LibreOffice BASIC to set Calc cell contents to display vertically, the same as can be done interactively via Format Cell -> Alignment -> Text Orientation and setting the angle to 90 degrees.

The problem is that they show 90 but the units are 1/100ths of a degree so vertical requires 9000.

This works
Code:
oCell.setPropertyValue( "RotateAngle", 9000 )
This does not work (it is here to...
LQ 5k Club
Posted in Uncategorized
Views 1652 Comments 0 catkin is offline
Old

New project: csvfs

Posted 05-17-2012 at 03:27 PM by hydraMax (Bits and Pixels)

I started a new project recently called csvfs. It is FUSE-based file system which can represent the data from a CSV file in a hierarchy of directories and files. This allows you to use standard unix text and file processing tools without going to the trouble of processing the CSV format yourself. It uses libcsv for parsing, so it should be very liberal about the exacting formatting of the CSV file.

Functionality is rudimentary, and the file system is currently read only. But alpha...
Member
Posted in Uncategorized
Views 525 Comments 0 hydraMax is offline

  



All times are GMT -5. The time now is 03:48 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration