Source: http://hi.baidu.com/donghaozheng/blog/item/e2f5045577cb73c8b645aec0.html
Excerpted from "detailed explanation of Android system principles and development points"
In Android, the startup script init. rc can perform some simple initialization operations during system initialization. This script is directly installed in the root file system of the target system and parsed by the init executable progra
Address: http://blog.csdn.net/zhandoushi1982/article/details/5767634
Related Web posts: Android STARTUP script init. RC ---- 000070
Init. RC descriptive file ---- androidsourcecode/system/CORE/init/readme.txt
Use the startup script init. RC in Android to perform some simple initialization operations during system ini
This code was encountered in the dictionary-to-model:1#import"HMAppInfo.h"2 3 @implementation Hmappinfo4 5-(Instancetype) Initwithdict: (Nsdictionary *) Dict6 {7 //Self is the object8Self =[Super init];9 if(self) {Ten //assign a value to a property in a dictionary, all the methods related to the Plist key value are here! OneSelf.name = dict[@"name"]; ASelf.icon = dict[@"icon"]; - } - returnSelf ; the } - -+ (Instancetype) app
I saw this doc when analyzing the INIT program source code of the Android system. I think the system analysis is quite useful, so I translated it!
Android initialization language (init. *. RC, init. conf file format)
The android initialization language contains four types of statements: Actions (Action), commands (command), services (service), and options (optio
Android Startup Process Analysis (8) parsing the init. rc action, androidinit. rc
######################################## #####
This article is original in extreme cold ice. For more information, see the source.
######################################## #####
The previous chapter describes how to parse init. rc after it is loaded during android startup.
Parsing implements different initialization files base
The software version used in this articleandroid:4.2.2Linux kernel: 3.1.10 This article and a few subsequent articles will be on the Android initialization (INIT) process in detail, stripped silk cocoon analysis, and in which a lot of knowledge, and hope that the reader understand the Android startup process and help. This chapter mainly introduces the determination of the hardware-related initialization file name and the principle and implementation
Linux shutdown, reboot, halt, init, and haltinit
Command Overview
Shutdown, poweroff, reboot, halt, and init can all be shut down for general usage.
/Sbin/halt [-n] [-w] [-d] [-f] [-I] [-p] [-h]/Sbin/reboot [-n] [-w] [-d] [-f] [-I]/Sbin/poweroff [-n] [-w] [-d] [-f] [-I] [-h]
[Root @ linux ~] $ Reboot -- hUsage: reboot [-n] [-w] [-d] [-f] [-h] [-I]-N: not synchronized before stopping the system-W: Write only
Analysis of Linux init system initialization, Part 1: UpStartUpstart Introduction
If the Linux release version you are using is Ubuntu, you may find that the/etc/inittab file cannot be found on your computer, this is because Ubuntu uses a new init system called upstart.
Related Articles:
Analysis of Linux init system initialization, Part 1: sysvinit
Analysis
after initialization, uboot calls start_kernel to run Linux kernel. just now, I simply looked at kernel 3.4. Now, the kernel runs init in the form of creating a kernel thread. For more information about Code , see init/main in Linux kernel code. c start_kernel-> rest_init: the kernel thread is created in rest_init. The Handler function of this thread is init_post, in init_post, the system calls run_init_
1. If init:0The system shuts down automatically after a reboot.2. If init:1After rebooting the system into single-user mode, the default prompt is sh-3.00#, the result of input TTY is/dev/console, the result of input runlevel is 1 S, where 1 indicates that the running level of 1,s indicates that the running mode is single, that is, one-user mode.3. If Init:2After
/Etc/init. d is the soft link of/etc/rc. d/init. d ). You can run the ll command to view the information as follows:
/*************************************** **************************************** **************************************[Root @ Rex ~] # Ll/etc/init. dLrwxrwxrwx 1 Root 11 3? 10/etc/init. d-> rc. d/
In Linux, the service command and/etc/init. d/relationship servicexxx start/etc/init. the xxx script in the d/directory is saved in/etc/init. run the mysvc script echopassedinoption $0 $ 1i...
In Linux, the service command and/etc/init. d/relationship service xxx start/etc/init
: This article mainly introduces the init. PHP file in ecshop. if you are interested in the PHP Tutorial, please refer to it.
Detailed description of the init. php file in ecshop
Under the Directory des/init. php
For work reasons, secondary development of ecshop is required. By the way, some analysis on the source code of ecshop is recorded:
The first is the
The difference between new and alloc/init in iOS development, iosnewallocinit
Http://macresearch.org/difference-between-alloc-init-and-new:
1. In actual development, new is rarely used. Generally, all we see when creating objects is [[className alloc] init].
But it does not mean that you will not be exposed to new. In some code, you will still see [className new]
About error: Cannot assign to 'self 'outside of a method in the init family, assigninit
When writing a model today, I suddenly found the problem of "Cannot assign to 'self 'outside of a method in the init family. And then solve the problem by searching. record it.
Sometimes we do not pay attention to writing the first letter after init into lower case when rewri
From: http://www.17xie.com/read-54054.html
The kernel uses a large number of different macros to mark functions and data structures with different functions. For example, macro _ init, _ Devinit. These macros are available in include/Linux/init. h.The header file. The compiler can use these macros to optimize the code to the appropriate memory location to reduce memory usage and improve kernel efficiency.
Android Start Analysis-init process init.rc[turn]
This article turns from: http://h1372865100.blog.163.com/blog/static/210429103201292911399594/
First, the INIT process starts
(Some native services started)
such as: ServiceManager start
Zygote start
Sysytemserver started, in
Init1
Start the Android service in the Init2 function
After the init process is up, pa
"Spring's Initializingbean Afterpropertiesset method and the Init-method configuration of the difference link"InitializingbeanSpring's Initializingbean provides a way for the bean to define the initialization method . Initializingbean is an interface that contains only one method:afterpropertiesset().The bean implements this interface and writes the initialization code in Afterpropertiesset ():Package RESEARCH.SPRING.BEANFACTORY.CH4;Import Org.springf
Spring Kernel Research-managing bean Declaration cycles One (Initializingbean and Init-method)
Initializingbean
SPIRNG's Initializingbean provides a way for the bean to define the initialization method. Initializingbean is an interface that contains only one method: Afterpropertiesset ().The bean implements this interface and writes initialization code in Afterpropertiesset ():Package RESEARCH.SPRING.BEANFACTORY.CH4; Import Org.springframework.b
First, what is the init processBefore we introduce the INIT process, let's start by understanding what the process is.1. Concept of the processThe so-called process is a running program in the system, the process is the concept of the operating system, whenever we execute a program, for the operating system is to create a process, in this process the operating system to allocate and release the process reso
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.