Sponsored Content
The Lounge What is on Your Mind? Just getting started with UNIX programming and administration Post 302977192 by Don Cragun on Wednesday 13th of July 2016 09:37:54 PM
Old 07-13-2016
Moderator's Comments:
Mod Comment Note that this thread has been moved to the What is on your Mind? forum, since this is not a technical discussion topic.


Hi despiragado,
Welcome to the UNIX & Linux Forums. And, welcome to the world of UNIX-like operating systems. It sounds like you are off to a great start.

If you get stuck, start a new thread and
  1. show us the inputs you have,
  2. the outputs you want,
  3. describe the logic that should be used to convert your inputs into your desired outputs,
  4. show us any code you have written to try to reach your goal,
  5. show us the output the code you have written produces, and
  6. show us any diagnostic messages produced while running your code.
Don't assume that everyone will have read this thread. Tell us each time you start a new thread what operating system and shell you're using. (The capabilities of some utilities vary considerably from system to system and you are much more likely to get useful suggestions if we know what programming environment you're using.)

We're here to help you learn how to use the tools that are available to you on your new system to do whatever you want to do.

Welcome.
These 3 Users Gave Thanks to Don Cragun For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

freeBSD Unix Administration...

Hello there ! I am little bit confuse about freeBSD and Sun Solaris, Susue, Mandrake. Is freeBSD is same like Sun Solaris ? i mean if i will have freeBSD software, i can administrator same like i am administring Unix O.S ? I want to be Unix Administrator, so if i will install freeBSD and... (3 Replies)
Discussion started by: abidmalik
3 Replies

2. Solaris

Unix Administration doubts ********

Hi, Can anyone tell me the correct answers for these: 1. You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance? 2. How do you increase the OS limitation for open files (LINUX and/or Solaris)? Thanks:p (1 Reply)
Discussion started by: dreams5617
1 Replies

3. UNIX for Dummies Questions & Answers

how do i get unix started

i am a total newbie...and want to learn unix....firstly...how do i get unix....if it is available on the internet then where is it?...and how do i get this to work then.....plz plz help asap...really desperate now thanx in advance (10 Replies)
Discussion started by: chaitanyamanot
10 Replies

4. UNIX for Dummies Questions & Answers

Getting Started with Unix

I am new to Unix and want to learn it thoroughly. From where can I download books/e-books and tutorials for free of charge:confused: (2 Replies)
Discussion started by: indiansoil
2 Replies

5. UNIX for Dummies Questions & Answers

Carreer:Networking Programming in Unix (C programming Language)

Hello, I am trying to learn Networking Programming in C in unix enviorment. I want to know how good it is to become a network programmer. i am crazy about Network programming but i also want to opt for the best carreer options. Anybody experienced Network Programmer, please tell me is my... (5 Replies)
Discussion started by: vibhory2j
5 Replies

6. UNIX for Dummies Questions & Answers

Getting Started with Unix....

Hi all I'm a beginner in Unix world.I want to know from where i should start Book,E-Book.web site ,...etc by the way how many version does unix have? i should install which version? How to install it? and very important,is there any simulator for training purpose? for example can i install unix... (2 Replies)
Discussion started by: ZarrinPour
2 Replies

7. UNIX for Dummies Questions & Answers

How does unix system administration, unix programming, unix network programming differ?

How does unix system administration, unix programming, unix network programming differ? Please help. (0 Replies)
Discussion started by: thulasidharan2k
0 Replies

8. UNIX for Dummies Questions & Answers

What are the career options in unix apart from unix system administration?

What are the career options in unix apart from unix system administration? (2 Replies)
Discussion started by: thulasidharan2k
2 Replies

9. Shell Programming and Scripting

How to get started with Unix

I'm new in UNIX learning. Can you please guide me. How to get start and then step by step things in Unix. (I know all basic commands) (5 Replies)
Discussion started by: Varsha katre
5 Replies
WITNESS(4)						   BSD Kernel Interfaces Manual 						WITNESS(4)

NAME
witness -- lock validation facility SYNOPSIS
options WITNESS options WITNESS_COUNT options WITNESS_KDB options WITNESS_NO_VNODE options WITNESS_SKIPSPIN DESCRIPTION
The witness module keeps track of the locks acquired and released by each thread. It also keeps track of the order in which locks are acquired with respect to each other. Each time a lock is acquired, witness uses these two lists to verify that a lock is not being acquired in the wrong order. If a lock order violation is detected, then a message is output to the kernel console detailing the locks involved and the locations in question. Witness can also be configured to drop into the kernel debugger when an order violation occurs. The witness code also checks various other conditions such as verifying that one does not recurse on a non-recursive lock, or attempt an upgrade on a shared lock held by another thread. If any of these checks fail, then the kernel will panic. The WITNESS_COUNT kernel option controls the maximum number of witness(4) entries that are tracked in the kernel. The maximum number of entries can be queried via the debug.witness.count sysctl. It can also be set from the loader(8) via the debug.witness.count environment variable. The WITNESS_NO_VNODE kernel option tells witness(4) to ignore locking issues between vnode(9) objects. The flag that controls whether or not the kernel debugger is entered when a lock order violation is detected can be set in a variety of ways. By default, the flag is off, but if the WITNESS_KDB kernel option is specified, then the flag will default to on. It can also be set from the loader(8) via the debug.witness.kdb environment variable or after the kernel has booted via the debug.witness.kdb sysctl. If the flag is set to zero, then the debugger will not be entered. If the flag is non-zero, then the debugger will be entered. The witness code can also be configured to skip all checks on spin mutexes. By default, this flag defaults to off, but it can be turned on by specifying the WITNESS_SKIPSPIN kernel option. The flag can also be set via the loader(8) environment variable debug.witness.skipspin. If the variable is set to a non-zero value, then spin mutexes are skipped. Once the kernel has booted, the status of this flag can be exam- ined but not set via the read-only sysctl debug.witness.skipspin. The sysctl debug.witness.watch specifies the level of witness involvement in the system. A value of 1 specifies that witness is enabled. A value of 0 specifies that witness is disabled, but that can be enabled again. This will maintain a small amount of overhead in the system. A value of -1 specifies that witness is disabled permanently and cannot be enabled again. The sysctl debug.witness.watch can be set via loader(8). The witness code also provides two extra ddb(4) commands if both witness and ddb(4) are compiled into the kernel: show locks [thread] Outputs the list of locks held by a thread to the kernel console along with the filename and line number at which each lock was last acquired by the thread. The optional thread argument may be either a TID, PID, or pointer to a thread structure. If thread is not specified, then the locks held by the current thread are displayed. show all locks Outputs the list of locks held by all threads in the system to the kernel console. show witness Dump the current order list to the kernel console. The code first displays the lock order tree for all of the sleep locks. Then it displays the lock order tree for all of the spin locks. Finally, it displays a list of locks that have not yet been acquired. SEE ALSO
ddb(4), loader(8), sysctl(8), mutex(9) HISTORY
The witness code first appeared in BSD/OS 5.0 and was imported from there into FreeBSD 5.0. BSD
February 6, 2015 BSD
All times are GMT -4. The time now is 04:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy