Technology Blog
(maintained by Lakshmi Sarvani Videla, Former Assistant Professor, KLEF and now Computer Science Lecturer, SRR and CVR Government Degree College, Vijayawada
Tuesday 26 March 2024
Friday 15 March 2024
Wednesday 13 March 2024
REFRESHER COURSE IN COMPUTER SCIENCE YOUTUBE LINKS
CLOUD
https://www.youtube.com/watch?v=M-13NVkTTzM
https://www.youtube.com/watch?v=Qb6L9i2b0sk
https://www.youtube.com/watch?v=5q7-Rf9y2lQ
https://drive.google.com/file/d/1Et39IY48XjLHmSRPQxIe1ghBuSkZVkVc/view
https://www.youtube.com/watch?v=eEQg_m_lXVo
AUGMENTED REALITY :
https://www.youtube.com/watch?v=3oOSYfMDVFM&t=3s
https://www.youtube.com/watch?v=gVB97H_VP5s
nlp
https://www.youtube.com/watch?v=0NkSPJUBwJo
https://www.youtube.com/watch?v=3IAmlWhpWtc
https://www.youtube.com/watch?v=w17hhPAXdas
IOT:
https://www.youtube.com/watch?v=YR1zKl6tnrM
ml
https://www.youtube.com/watch?v=eZDAZcXPJ0U
https://www.youtube.com/watch?v=q14CQPkxdt4
https://www.youtube.com/watch?v=VCDb0MHTM7Y
https://www.youtube.com/watch?v=omeEjvwjh3g
https://www.youtube.com/watch?v=fSpXmdTHNZs
BLOCK CHAIN
https://www.youtube.com/watch?v=dBOeXgi_JFk
QUANTING COMPUTING
https://www.youtube.com/watch?v=T8NebqqHLW0
CYBER PANDEMIC
https://www.youtube.com/watch?v=qA9Sg9DWdgA
https://www.youtube.com/watch?v=i97bw12FkRE
Monday 25 December 2023
Wednesday 6 December 2023
life cycle of a thread notes
A thread life cycle is always in one of these five states. It can move from one state to another state. In Java, the life cycle of thread has five states.
1. Newborn State
2. Runnable State
3. Running State
4. Blocked State
5. Dead State
New : A thread begins its life cycle in the new state. It remains in this state until the start() method is called on it.
Thread t = new Thread();Runnable : After invocation of start() method on new thread, the thread becomes runnable.
Thread t = new Thread();
t.start();Running : A thread is in running state if the thread scheduler has selected it.
t1.isAlive() - The isAlive() method returns true if the thread upon which it is called is still running otherwise it returns false.
Waiting : A thread is in waiting state if it waits for another thread to perform a task. In this stage the thread is still alive.
Example1: t1.join() waiting for t1 to complete its execution
Example2: The state of thread t1 after invoking the method sleep() on it - TIMED_WAITING
Thread.sleep(400);
Terminated : A thread enters the terminated state when it completes its task.
t1.stop()
Tuesday 28 November 2023
Deadlock Recovery
deadlock recovery techniques like wound-wait and wait-die are used to handle situations where processes are waiting for resources, and a deadlock might occur. Let's break them down:
Wound-Wait:
Think of it like being a bit impatient. If a process needs a resource held by another process, it checks the age or "wound" of the other process.
If the other process is "younger" (started later), then the current process waits.
If the other process is "older" (started earlier), the current process can "wound" it, meaning it can force the older process to release its resources, preventing a deadlock.
Wait-Die:
This approach is more patient. If a process needs a resource held by another process, it checks the age or "age difference" between them.
If the other process is "younger," the current process waits.
If the other process is "older," the current process can "die," meaning it gives up and gets restarted, allowing the older process to continue and preventing a deadlock.
In both cases, the idea is to avoid deadlocks by carefully managing how processes interact.