C# Expert OOP - Lecture 4: Tasks & Threading, Reference vs. Value Types, Stack, Heap, GC, Pointers

preview_player
Показать описание
#ObjectOrientedProgramming #CSharp #Software #Engineering #Programming #Course
Hello everyone. My name is Furkan Gözükara, and I am a Computer Engineer Ph.D. Assistant Professor at the Software Engineering department.

In this course, starting from ground to the advanced level Object Oriented Programming concept and the C# programming language will be taught.

In Lecture 4 the following topics are covered:
* Why do we need separate threads / tasks to keep the UI responsive
* How to get task running thread ID
* How to use Debug.WriteLine for debugging purposes
* How to start a new task with Task.Factory.StartNew
* How to execute a method after the task is completed with Task ContinueWith
* How to take CPU intensive task / workload into a different thread than main thread and keep the User Interface (UI) responsive
* What is stack and heap
* What are placed in stack or in heap? Why?
* What does garbage collector do?
* What are value type, reference type, instruction type and pointer types?
* How to use performance profiler to see when garbage collector clears the memory

If you want to start learning programming or develop your other Software Engineering related skills you can watch our below full courses:

notice : automatic subtitle timing success
Рекомендации по теме
Комментарии
Автор

i learned in this lecture:
* What is the asset type?
* How can we use debug?
* What a Task is?
* What is stack and heap?
* What is stack and heap and their differences?
*What is the-stack?
*How we solve frozen UI problem?
* What does Garbage Collector do?
* How to take CPU intensive task
195050009

thehistoryarchiveai
Автор

i learned :

- What is the asset type?
- How can we use debug?
- What a Task is?
- What is stack and heap?
- What is stack and heap and their differences?
- efficiency of garbage collector
- reference and value types

195050012

dodontkar
Автор

• I have learnt in this video:
- What are Task and Threading in WPF
- What are Overview and the Dispatcher
- Why and how we use Debug.Writeline
- How we solve frozen UI problem
- What are stack and heap, difference between them
- What are the reference types and value types
- What does Garbage Collector do
- We saw how work performance profile in visual studio
Thanks for lesson
185050002

ahmetpinar
Автор

195050902
1. Asset Type
2. App type
3. Tasks
4. we used thread and tasks to make the ui responsive. make the program work in the background
5. prevent ui freezing
6. What is stack
7. Stack heap
Thank you professor for your effort

ammarhanyezeldinabdelrazik
Автор

I learnt from this video:

- Stack and heap, difference between them
- Task
- Threading in WPF
- How to prevent from UI freezes
- Garbage collector

175050008

kadirdurmaz
Автор

165050012
I learned this video:
- What is the asset type?
- How can we use debug?
- What a Task is?
- What is stack and heap?
- What is stack and heap and their differences?
- What is the-stack?
- How we solve frozen UI problem?
- What does Garbage Collector do?
- How to take CPU intensive task

Thank you for lesson.

ekremsahin
Автор

175050007

What I learned in this lesson:

- Information about task and thread
- starting new tasks
- CPU intensive task for being responsive ui
- stack, heap and pointer
- efficiency of garbage collector
- reference and value types

Thanks for lesson.

mehmetoksuz
Автор

175050011
In this week we learned:
-how can we use debug
-we learned stack and heap
-what it does garbage collector
-how to start new task
-how to use Task ContinueWith
-how to get task running thread ID
-how to take CPU intensive task
Thanks for the lesson

efemertkocak
Автор

In this lecture, we continue with the past week's project and we have used tasks for preventing crashes. After that, we learned the differences between value type and reference type ( Value type: have their own copy of data, reference type: extends system.object and points to a location in the memory that contains the actual data ). Then, we take a look at the differences between Stack and Heap ( Stack is used for static memory allocation and Heap for dynamic memory allocation also, both stored in the computer's RAM ). Thank you for the lesson.

165050007

berkayoztekin
Автор

175050010

In this lesson;
- Types in Microsoft .Net can be either value type or reference type.
- While value types are stored generally in the stack, reference types are stored in the managed heap.
- Value type: have their own copy of data, reference type: extends system.object and points to a location in the memory that contains the actual data
- The Stack is more or less responsible for keeping track of what's executing in our code or what's been "called".
- The Heap is more or less responsible for keeping track of our objects.
- Checks the system garbage collector, a service that reclaims unused memory automatically.
- Object
-> GC

yagmur
Автор

195050024

In this lesson we learnt:
Differences between asses and application type
Stack
Value and References
Using threads and tasks

Thanks for your time

Автор

195050003

In this week's lesson we learnt:


- Tasks & Threading which will be very important for both our programming ability and the final project
- What a Task is
- Why we need tasks, and how they will help executing more than one work at the same time
- Starting a new task with Factory.StartNew method
- How to keep the UI responsive during an intensive task
- Differences between stack and heap

bugracangundogan
Автор

185050008
I learned in this lesson
-what is the asset type? what is the application type?
-What are the differences between?
- What is the-stack?
- value type
- reference type
what are the differences
- What are general information about the garbage collector and information about its efficiency
thanks for this lesson

selinokten
Автор

195050021

in that lecture I learnt those :
*what is task
*how to execute method after task is complated
*whats garbage collector does
* heap and stack differences

yusufcan
Автор

From this video we learned;
-Debug.WriteLine
-Garbage Collector
-Stack and heap
-Value type
-Reference type


195050027

burhanyasbay
Автор

1850500004
I learned in this lesson
-using thread and task
-What is stack and heap
-starting new task


thanks for this lesson

zeynepbaykal
Автор

205060801
This lesson was a continuation of the previous one. We used asynchronous programming - using Threads Task and how to operate them. That helped us to make UI responsive and protect against crushing the app. Difference between value type and reference type: what happens when we want to copy each of them when they are stored (stack vs heap). Some info about garbage collector – GC which helps manage memory without the need for manual operations.

wojciechkudlicki
Автор

What's stack and heap and their differences.
value, reference, instruction, and pointer types.
Usage of thread and task
+ asset and application types.

Raanem Dahbi - 195050904
Thank you for your time.

raanemdahbi
Автор

175050004

In this lesson I learned, Information about tasks and thread, how to start new tasks, responsive UI, stacks, heaps and pointers, efficiency for collector, references, and value types
.

cantutar
visit shbcf.ru