Generally, locks are advisory locks, where each thread cooperates by acquiring the lock before accessing the corresponding data. Some systems also implement mandatory locks, where attempting unauthorized access to a locked resource will force an exception in the entity attempting to make the access.
The simplest type of lock is a binary semaphore. It provides exclusive access to the locked data. Other schemes also provide shared access for reading data. Other widely implemented access modes are exclusive, intend-to-exclude and intend-to-upgrade.
Another way to classify locks is by what happens when the lock strategy prevents the progress of a thread. Most locking designs block the execution of the thread requesting the lock until it is allowed to access the locked resource. With a spinlock, the thread simply waits ("spins") until the lock becomes available. This is efficient if threads are blocked for a short time, because it avoids the overhead of operating system process re-scheduling. It is inefficient if the lock is held for a long time, or if the progress of the thread that is holding the lock depends on preemption of the locked thread.
Locks typically require hardware support for efficient implementation. This support usually takes the form of one or more atomic instructions such as "test-and-set", "fetch-and-add" or "compare-and-swap". These instructions allow a single process to test if the lock is free, and if free, acquire the lock in a single atomic operation.
Uniprocessor architectures have the option of using uninterruptible sequences of instructions—using special instructions or instruction prefixes to disable interrupts temporarily—but this technique does not work for multiprocessor shared-memory machines. Proper support for locks in a multiprocessor environment can require quite complex hardware or software support, with substantial synchronization issues.
The reason an atomic operation is required is because of concurrency, where more than one task executes the same logic. For example, consider the following C code:
if(lock==0){// lock free, set itlock=myPID;}
The above example does not guarantee that the task has the lock, since more than one task can be testing the lock at the same time. Since both tasks will detect that the lock is free, both tasks will attempt to set the lock, not knowing that the other task is also setting the lock. Dekker's or Peterson's algorithm are possible substitutes if atomic locking operations are not available.
Careless use of locks can result in deadlock or livelock. A number of strategies can be used to avoid or recover from deadlocks or livelocks, both at design-time and at run-time. (The most common strategy is to standardize the lock acquisition sequences so that combinations of inter-dependent locks are always acquired in a specifically defined "cascade" order.)
Some languages do support locks syntactically. An example in C# follows:
publicclassAccount// This is a monitor of an account{// Use `object` in versions earlier than C# 13privatereadonlyLock_balanceLock=new();privatedecimal_balance=0;publicvoidDeposit(decimalamount){// Only one thread at a time may execute this statement.lock(_balanceLock){_balance+=amount;}}publicvoidWithdraw(decimalamount){// Only one thread at a time may execute this statement.lock(_balanceLock){_balance-=amount;}}}
C# introduced System.Threading.Lock in C# 13 on .NET 9.
The code lock(this) can lead to problems if the instance can be accessed publicly.[1]
Similar to Java, C# can also synchronize entire methods, by using the MethodImplOptions.Synchronized attribute.[2][3]
[MethodImpl(MethodImplOptions.Synchronized)]publicvoidSomeMethod(){// do stuff}
Granularity
Before being introduced to lock granularity, one needs to understand three concepts about locks:
lock overhead: the extra resources for using locks, like the memory space allocated for locks, the CPU time to initialize and destroy locks, and the time for acquiring or releasing locks. The more locks a program uses, the more overhead associated with the usage;
lock contention: this occurs whenever one process or thread attempts to acquire a lock held by another process or thread. The more fine-grained the available locks, the less likely one process/thread will request a lock held by the other. (For example, locking a row rather than the entire table, or locking a cell rather than the entire row);
deadlock: the situation when each of at least two tasks is waiting for a lock that the other task holds. Unless something is done, the two tasks will wait forever.
There is a tradeoff between decreasing lock overhead and decreasing lock contention when choosing the number of locks in synchronization.
An important property of a lock is its granularity. The granularity is a measure of the amount of data the lock is protecting. In general, choosing a coarse granularity (a small number of locks, each protecting a large segment of data) results in less lock overhead when a single process is accessing the protected data, but worse performance when multiple processes are running concurrently. This is because of increased lock contention. The more coarse the lock, the higher the likelihood that the lock will stop an unrelated process from proceeding. Conversely, using a fine granularity (a larger number of locks, each protecting a fairly small amount of data) increases the overhead of the locks themselves but reduces lock contention. Granular locking where each process must hold multiple locks from a common set of locks can create subtle lock dependencies. This subtlety can increase the chance that a programmer will unknowingly introduce a deadlock.[citation needed]
In a database management system, for example, a lock could protect, in order of decreasing granularity, part of a field, a field, a record, a data page, or an entire table. Coarse granularity, such as using table locks, tends to give the best performance for a single user, whereas fine granularity, such as record locks, tends to give the best performance for multiple users.
Database locks can be used as a means of ensuring transaction synchronicity. i.e. when making transaction processing concurrent (interleaving transactions), using 2-phased locks ensures that the concurrent execution of the transaction turns out equivalent to some serial ordering of the transaction. However, deadlocks become an unfortunate side-effect of locking in databases. Deadlocks are either prevented by pre-determining the locking order between transactions or are detected using waits-for graphs. An alternate to locking for database synchronicity while avoiding deadlocks involves the use of totally ordered global timestamps.
There are mechanisms employed to manage the actions of multiple concurrent users on a database—the purpose is to prevent lost updates and dirty reads. The two types of locking are pessimistic locking and optimistic locking:
Pessimistic locking: a user who reads a record with the intention of updating it places an exclusive lock on the record to prevent other users from manipulating it. This means no one else can manipulate that record until the user releases the lock. The downside is that users can be locked out for a very long time, thereby slowing the overall system response and causing frustration.
Where to use pessimistic locking: this is mainly used in environments where data-contention (the degree of users request to the database system at any one time) is heavy; where the cost of protecting data through locks is less than the cost of rolling back transactions, if concurrency conflicts occur. Pessimistic concurrency is best implemented when lock times will be short, as in programmatic processing of records. Pessimistic concurrency requires a persistent connection to the database and is not a scalable option when users are interacting with data, because records might be locked for relatively large periods of time. It is not appropriate for use in Web application development.
Optimistic locking: this allows multiple concurrent users access to the database whilst the system keeps a copy of the initial-read made by each user. When a user wants to update a record, the application determines whether another user has changed the record since it was last read. The application does this by comparing the initial-read held in memory to the database record to verify any changes made to the record. Any discrepancies between the initial-read and the database record violates concurrency rules and hence causes the system to disregard any update request. An error message is generated and the user is asked to start the update process again. It improves database performance by reducing the amount of locking required, thereby reducing the load on the database server. It works efficiently with tables that require limited updates since no users are locked out. However, some updates may fail. The downside is constant update failures due to high volumes of update requests from multiple concurrent users - it can be frustrating for users.
Where to use optimistic locking: this is appropriate in environments where there is low contention for data, or where read-only access to data is required. Optimistic concurrency is used extensively in .NET to address the needs of mobile and disconnected applications,[4] where locking data rows for prolonged periods of time would be infeasible. Also, maintaining record locks requires a persistent connection to the database server, which is not possible in disconnected applications.
Lock compatibility table
Several variations and refinements of these major lock types exist, with respective variations of blocking behavior. If a first lock blocks another lock, the two locks are called incompatible; otherwise the locks are compatible. Often, lock types blocking interactions are presented in the technical literature by a Lock compatibility table. The following is an example with the common, major lock types:
Lock compatibility table
Lock type
read-lock
write-lock
read-lock
✔
X
write-lock
X
X
✔ indicates compatibility
X indicates incompatibility, i.e, a case when a lock of the first type (in left column) on an object blocks a lock of the second type (in top row) from being acquired on the same object (by another transaction). An object typically has a queue of waiting requested (by transactions) operations with respective locks. The first blocked lock for operation in the queue is acquired as soon as the existing blocking lock is removed from the object, and then its respective operation is executed. If a lock for operation in the queue is not blocked by any existing lock (existence of multiple compatible locks on a same object is possible concurrently), it is acquired immediately.
Comment: In some publications, the table entries are simply marked "compatible" or "incompatible", or respectively "yes" or "no".[5]
Disadvantages
Lock-based resource protection and thread/process synchronization have many disadvantages:
Contention: some threads/processes have to wait until a lock (or a whole set of locks) is released. If one of the threads holding a lock dies, stalls, blocks, or enters an infinite loop, other threads waiting for the lock may wait indefinitely until the computer is power cycled.
Overhead: the use of locks adds overhead for each access to a resource, even when the chances for collision are very rare. (However, any chance for such collisions is a race condition.)
Debugging: bugs associated with locks are time dependent and can be very subtle and extremely hard to replicate, such as deadlocks.
Instability: the optimal balance between lock overhead and lock contention can be unique to the problem domain (application) and sensitive to design, implementation, and even low-level system architectural changes. These balances may change over the life cycle of an application and may entail tremendous changes to update (re-balance).
Composability: locks are only composable (e.g., managing multiple concurrent locks in order to atomically delete item X from table A and insert X into table B) with relatively elaborate (overhead) software support and perfect adherence by applications programming to rigorous conventions.
Priority inversion: a low-priority thread/process holding a common lock can prevent high-priority threads/processes from proceeding. Priority inheritance can be used to reduce priority-inversion duration. The priority ceiling protocol can be used on uniprocessor systems to minimize the worst-case priority-inversion duration, as well as prevent deadlock.
Convoying: all other threads have to wait if a thread holding a lock is descheduled due to a time-slice interrupt or page fault.
Some concurrency control strategies avoid some or all of these problems. For example, a funnel or serializing tokens can avoid the biggest problem: deadlocks. Alternatives to locking include non-blocking synchronization methods, like lock-free programming techniques and transactional memory. However, such alternative methods often require that the actual lock mechanisms be implemented at a more fundamental level of the operating software. Therefore, they may only relieve the application level from the details of implementing locks, with the problems listed above still needing to be dealt with beneath the application.
In most cases, proper locking depends on the CPU providing a method of atomic instruction stream synchronization (for example, the addition or deletion of an item into a pipeline requires that all contemporaneous operations needing to add or delete other items in the pipe be suspended during the manipulation of the memory content required to add or delete the specific item). Therefore, an application can often be more robust when it recognizes the burdens it places upon an operating system and is capable of graciously recognizing the reporting of impossible demands.[citation needed]
Lack of composability
One of lock-based programming's biggest problems is that "locks don't compose": it is hard to combine small, correct lock-based modules into equally correct larger programs without modifying the modules or at least knowing about their internals. Simon Peyton Jones (an advocate of software transactional memory) gives the following example of a banking application:[6] design a class Account that allows multiple concurrent clients to deposit or withdraw money to an account, and give an algorithm to transfer money from one account to another.
The lock-based solution to the first part of the problem is:
class Account:
member balance: Integer
member mutex: Lock
method deposit(n: Integer)
mutex.lock()
balance ← balance + n
mutex.unlock()
method withdraw(n: Integer)
deposit(−n)
The second part of the problem is much more complicated. A transfer routine that is correct for sequential programs would be
function transfer(from: Account, to: Account, amount: Integer)
from.withdraw(amount)
to.deposit(amount)
In a concurrent program, this algorithm is incorrect because when one thread is halfway through transfer, another might observe a state where amount has been withdrawn from the first account, but not yet deposited into the other account: money has gone missing from the system. This problem can only be fixed completely by putting locks on both accounts prior to changing either one, but then the locks have to be placed according to some arbitrary, global ordering to prevent deadlock:
function transfer(from: Account, to: Account, amount: Integer)
if from < to // arbitrary ordering on the locks
from.lock()
to.lock()
else
to.lock()
from.lock()
from.withdraw(amount)
to.deposit(amount)
from.unlock()
to.unlock()
This solution gets more complicated when more locks are involved, and the transfer function needs to know about all of the locks, so they cannot be hidden.
Programming languages vary in their support for synchronization:
Ada provides protected objects that have visible protected subprograms or entries[7] as well as rendezvous.[8]
The ISO/IEC C standard provides a standard mutual exclusion (locks) application programming interface (API) since C11. The current ISO/IEC C++ standard supports threading facilities since C++11. The OpenMP standard is supported by some compilers, and allows critical sections to be specified using pragmas. The POSIX pthread API provides lock support.[9]Visual C++ provides the synchronize attribute of methods to be synchronized, but this is specific to COM objects in the Windows architecture and Visual C++ compiler.[10] C and C++ can easily access any native operating system locking features.
C# provides the lock keyword on a thread to ensure its exclusive access to a resource.
Java provides the keyword synchronized to lock code blocks, methods or objects[11] and libraries featuring concurrency-safe data structures.
Objective-C provides the keyword @synchronized[12] to put locks on blocks of code and also provides the classes NSLock,[13] NSRecursiveLock,[14] and NSConditionLock[15] along with the NSLocking protocol[16] for locking as well.
PHP provides a file-based locking [17] as well as a Mutex class in the pthreads extension. [18]
Python provides a low-level mutex mechanism with a Lockclass from the threading module.[19]
The ISO/IEC Fortran standard (ISO/IEC 1539-1:2010) provides the lock_type derived type in the intrinsic module iso_fortran_env and the lock/unlock statements since Fortran 2008.[20]
Ruby provides a low-level mutex object and no keyword.[21]
x86 assembly language provides the LOCK prefix on certain operations to guarantee their atomicity.
Haskell implements locking via a mutable data structure called an MVar, which can either be empty or contain a value, typically a reference to a resource. A thread that wants to use the resource ‘takes’ the value of the MVar, leaving it empty, and puts it back when it is finished. Attempting to take a resource from an empty MVar results in the thread blocking until the resource is available.[24] As an alternative to locking, an implementation of software transactional memory also exists.[25]
Go provides a low-level Mutex object in standard's library sync package.[26] It can be used for locking code blocks, methods or objects.
A mutex is a locking mechanism that sometimes uses the same basic implementation as the binary semaphore. However, they differ in how they are used. While a binary semaphore may be colloquially referred to as a mutex, a true mutex has a more specific use-case and definition, in that only the task that locked the mutex is supposed to unlock it. This constraint aims to handle some potential problems of using semaphores:
Priority inversion: If the mutex knows who locked it and is supposed to unlock it, it is possible to promote the priority of that task whenever a higher-priority task starts waiting on the mutex.
Premature task termination: Mutexes may also provide deletion safety, where the task holding the mutex cannot be accidentally deleted. [citation needed]
Termination deadlock: If a mutex-holding task terminates for any reason, the OS can release the mutex and signal waiting tasks of this condition.
Recursion deadlock: a task is allowed to lock a reentrant mutex multiple times as it unlocks it an equal number of times.
Accidental release: An error is raised on the release of the mutex if the releasing task is not its owner.
^Peyton Jones, Simon (2007). "Beautiful concurrency"(PDF). In Wilson, Greg; Oram, Andy (eds.). Beautiful Code: Leading Programmers Explain How They Think. O'Reilly.
^ISO/IEC 8652:2007. "Protected Units and Protected Objects". Ada 2005 Reference Manual. Retrieved 2010-02-27. A protected object provides coordinated access to shared data, through calls on its visible protected operations, which can be protected subprograms or protected entries.{{cite book}}: CS1 maint: numeric names: authors list (link)
Artikel ini tidak memiliki referensi atau sumber tepercaya sehingga isinya tidak bisa dipastikan. Tolong bantu perbaiki artikel ini dengan menambahkan referensi yang layak. Tulisan tanpa sumber dapat dipertanyakan dan dihapus sewaktu-waktu.Cari sumber: Status konservasi – berita · surat kabar · buku · cendekiawan · JSTOR Status konservasi spesies adalah indikator kemungkinan untuk spesies yang masih ada dan tersisa hingga saat ini atau masa depan. Stat...
Red-tailed black shark Epalzeorhynchos bicolor A red-tailed black sharkStatus konservasiTerancam kritisIUCN7807 TaksonomiKerajaanAnimaliaFilumChordataKelasActinopteriOrdoCypriniformesFamiliCyprinidaeGenusEpalzeorhynchosSpesiesEpalzeorhynchos bicolor Smith, 1931 Tata namaSinonim takson Labeo bicolor Smith, 1931 DistribusiEndemikThailand lbs Hiu hitam ekor merah ( Epalzeorhynchos bicolor ; syn. Labeo bicolor ), atau hiu ekor merah saja dalah spesies ikan air tawar dalam keluarga ikan mas, ...
Radio station in Presque Isle, MaineWQHRPresque Isle, MaineBroadcast areaAroostook County, Maine, Western New BrunswickFrequency96.1 MHzBrandingQ 96.1ProgrammingFormatTop 40 (CHR)OwnershipOwnerTownsquare Media(Townsquare Media Presque Isle License, LLC)Sister stationsWBPW, WOZIHistoryFirst air date1981 (as WTMS)Former call signsWTMS (1981-1995)Call sign meaningQ for Q96, HR for Hit RadioTechnical informationFacility ID9422ClassCERP95,000 wattsHAAT390 metersLinksWebcastListen LiveWebsiteq961.c...
RektorNonce Farida Tuati, SE., M.SiLokasikupang Politeknik Negeri Kupang adalah perguruan tinggi negeri yang terdapat di Kota Kupang, provinsi Nusa Tenggara Timur, Indonesia. Pranala luar (Indonesia) Peraturan Statuta Diarsipkan 2010-12-24 di Wayback Machine. di situs web Ditjen Dikti Kemendiknas lbs Perguruan tinggi negeri di Indonesia yang dikelola oleh KemdikbudristekUniversitas 19 November Airlangga Andalas Bangka Belitung Bengkulu Borneo Tarakan Brawijaya Cenderawasih Diponegoro Gadjah M...
Si ce bandeau n'est plus pertinent, retirez-le. Cliquez ici pour en savoir plus. Cet article adopte un point de vue régional ou culturel particulier et nécessite une internationalisation (mai 2012). Merci de l'améliorer ou d'en discuter sur sa page de discussion ! Vous pouvez préciser les sections à internationaliser en utilisant {{section à internationaliser}}. Antenne-relais Une antenne-relais de téléphonie mobile (aussi appelée station de base ou site radio) est un émetteur-...
Newport kotakota besar Newport (en) Tempat Negara berdaulatInggrisNegara konstituen di Britania RayaWalesDistrict of Wales (en)Newport (en) Ibu kota dariNewport (en) NegaraInggris PendudukTotal159.600 (2021 )GeografiBagian dariMonmouthshire Luas wilayah73,35 sqmi [convert: unit tak dikenal]Dekat dengan perairanUsk (en) dan Ebbw River (en) Informasi tambahanKode posNP Zona waktuWaktu Greenwich Kode telepon01633 Lain-lainKota kembarKutaisiAnnapolisGuangxiHeidenheim an der Brenz Situs...
American politician David A. CaprioMember of the Rhode Island House of Representativesfrom the 34th districtIn officeJanuary 7, 2003 – January 4, 2011Preceded byRobert E. FlahertySucceeded byTeresa TanziMember of the Rhode Island House of Representativesfrom the 47th districtIn officeDecember 21, 1999 – January 7, 2003Preceded byJames M. KelsoSucceeded byRichard A. Aubin Personal detailsBorn (1967-06-05) June 5, 1967 (age 56)Rhode Island, U.S...
Trinidad e Tobago (dettagli) (dettagli) (EN) Together we aspire, together we achieve(IT) Insieme aspiriamo, insieme otteniamo Trinidad e Tobago - Localizzazione Dati amministrativiNome completoRepubblica di Trinidad e Tobago Nome ufficialeRepublic of Trinidad and Tobago Lingue ufficialiinglese Altre linguespagnolo, bhojpuri CapitalePort of Spain (49 628 ab. / 2020) PoliticaForma di governoRepubblica parlamentare PresidenteChristine Kangaloo Primo ministroKeith Rowley Indi...
Sancha dan Alfonso Sancha dari Kastilia (21 September 1154/5 – 9 November 1208) merupakan putri tunggal Raja Alfonso VII dari León dan Kastilia dan ratu keduanya, Richeza dari Polandia, putri Władysław II Wygnaniec, Adipati Agung Polandia dan pemimpin Silesia dan istrinya Agnes dari Babenberg. Pada tanggal 18 Januari, 1174 ia menikah dengan Raja Alfonso II dari Aragon di Zaragoza. Akibat ulah pengamen Giraud de Calanson dan Peire Raymond, ratu kemudian terlibat di dalam sengketa hukum de...
Pour les articles homonymes, voir Edwards. Glen EdwardsBiographieNaissance 5 mars 1918Medicine HatDécès 5 juin 1948 (à 30 ans)Base aérienne d'EdwardsNationalité américaineFormation École des pilotes d'essai de l'United States Air ForceLincoln High School (en)Université de PrincetonSierra College (en)Activité Pilote d'essaiAutres informationsConflit Seconde Guerre mondialeDistinctions Distinguished Flying CrossAir Medalmodifier - modifier le code - modifier Wikidata Glen Edwards...
Universitas PGRI SemarangMotoThe Meaning UniversityJenisUniversitas swastaDidirikan23 Juli 1981; 42 tahun lalu (1981-07-23)RektorDr. Sri Suciati, M.Hum.LokasiSemarang, Jawa Tengah, IndonesiaSitus webhttps://upgris.ac.id/ Universitas PGRI Semarang (UPGRIS) adalah salah satu perguruan tinggi swasta yang berlokasi di Semarang, Jawa Tengah, Indonesia yang didirikan pada tanggal 23 Juli 1981.[1] Universitas PGRI Semarang sudah terakreditasi B oleh BAN-PT (Badan Akreditasi Nasional Per...
Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Januari 2023. SMA Negeri Unggul Tunas BangsaInformasiDidirikan22 Mei 2008AkreditasiANomor Statistik Sekolah302061703004Nomor Pokok Sekolah Nasional10110529Kepala SekolahNaini Afrita, S. Pd.Ketua KomiteEdi Darmawan, S.Sos, MMJurusan atau peminatanIPAAlamatL...
HuffPostURLwww.huffpost.comTipeBerita dan opiniBersifat komersial?YaPendaftaranTidak wajibBahasaArabInggrisPrancisJermanYunaniItaliaJepangKoreaPortugalSpanyolPemilikAOLPembuatArianna HuffingtonKenneth LererJonah PerettiAndrew BreitbartPublisherLydia PolgreenBerdiri sejak9 Mei 2005; 18 tahun lalu (2005-05-09)Lokasi kantor pusatKota New York NegaraAmerika Serikat Peringkat Alexa 533 (November 2019[update])[1]StatusAktif HuffPost (dulu The Huffington Post dan kadang disingka...
National motorway system of Italy Autostrada redirects here. For other uses, see Autostrada (disambiguation). For the company previously known as Autostrade, see Mundys. Map of the autostrade of Italy The autostrade (Italian: [autoˈstraːde]; sg. autostrada [autoˈstraːda]) are roads forming the Italian national system of motorways. The total length of the system is about 7,016 kilometres (4,360 mi), as of 30 July 2022.[1] To these data are added 13 motorway spu...
Artikel ini perlu diwikifikasi agar memenuhi standar kualitas Wikipedia. Anda dapat memberikan bantuan berupa penambahan pranala dalam, atau dengan merapikan tata letak dari artikel ini. Untuk keterangan lebih lanjut, klik [tampil] di bagian kanan. Mengganti markah HTML dengan markah wiki bila dimungkinkan. Tambahkan pranala wiki. Bila dirasa perlu, buatlah pautan ke artikel wiki lainnya dengan cara menambahkan [[ dan ]] pada kata yang bersangkutan (lihat WP:LINK untuk keterangan lebih lanjut...
Not to be confused with Xiang'an, Xiamen. State-level new area in Hebei, People's Republic of ChinaXiong'an New Area 雄安新区State-level new areaBusiness and Service Convention Center Xiong'an in Rongcheng CountyLocation of Xiong'an New Area in HebeiXiong'an New AreaLocation in HebeiShow map of HebeiXiong'an New AreaXiong'an New Area (Northern China)Show map of Northern ChinaXiong'an New AreaXiong'an New Area (China)Show map of ChinaCoordinates: 39°02′55″N 115°54′13″E / ...
National anthem of Canada This article is about the national anthem of Canada. For other uses, see O Canada (disambiguation). O CanadaOfficial bilingual sheet musicNational anthem of CanadaAlso known asFrench: Ô CanadaLyricsAdolphe-Basile Routhier (French, 1880), Robert Stanley Weir (English, 1908)MusicCalixa Lavallée, 1880AdoptedJuly 1, 1980Audio sampleInstrumental rendition by the US military's Third Marine Aircraft Wing Bandfilehelp This article contains special characters. Without prop...
National Rail station in London, England West Norwood West Norwood station buildingWest NorwoodLocation of West Norwood in Greater LondonLocationWest NorwoodLocal authorityLondon Borough of LambethManaged bySouthernStation codeWNWDfT categoryDNumber of platforms2AccessibleYes[1]Fare zone3National Rail annual entry and exit2018–19 1.938 million[2]– interchange 28,623[2]2019–20 1.972 million[2]– interchange 29,312[2]2020–21 0.517 mil...